GeoServer Management
Guide for managing GeoServer integration in EO-Toolkit.
GeoServer Setup
Installation
- Download GeoServer from geoserver.org
- Install and configure
- Start GeoServer service
- Access admin at
http://localhost:8080/geoserver
Workspace Configuration
- Log into GeoServer admin
- Navigate to Workspaces
- Create workspace:
etoolkit - Set as default if needed
User Configuration
Set GeoServer credentials in your .env file (never commit real credentials):
Data Upload Process
Single Upload
- Use Django Admin panel
- Go to Geo Data Uploads
- Add new upload
- System automatically:
- Creates store
- Publishes layer
- Configures WMS
Bulk Upload
-
Organize files:
-
Create metadata JSON
- Place at
/staticData/geoserver_data.json - Trigger bulk upload from admin
Layer Management
Viewing Layers
- List in Django Admin
- View in GeoServer admin
- Check WMS availability
- Verify layer properties
Updating Layers
- Edit metadata in Django Admin
- Replace data file (re-upload)
- Update styles (upload new SLD)
- Modify layer properties in GeoServer
Deleting Layers
- Delete from Django Admin
- Automatic cleanup:
- GeoServer layer removed
- Store deleted
- Files removed
Style Management
SLD Files
- Upload with data
- Applied automatically
- Can be updated
- Supports various styles
Default Styles
- Applied if no SLD provided
- GeoServer default styles
- Can be customized
Troubleshooting
Connection Issues
- Verify GeoServer is running
- Check URL and credentials
- Test connection manually
- Review network settings
Upload Failures
- Check file format
- Verify permissions
- Check workspace exists
- Review GeoServer logs
Layer Not Appearing
- Check layer published
- Verify WMS enabled
- Test WMS URL directly
- Check layer visibility
Bulk geoserver data upload
1. first All data files must be organized under:
/media/geoserver_data/<folder_name>/
Each dataset should have:
- GeoTIFF or Shapefile ZIP
- .sld file for styling
- Thumbnail image
media/geoserver_data/Niger_LULC/
├── Niger_LULC.tif
├── Niger_LULC.sld
├── Niger_LULC.png
2. Place the bulk metadata JSON at:
/staticData/geoserver_data.json
3. What the Script Does
- Loads and parses geoserver_data.json
- For each entry:
- Checks if a dataset with the same name already exists
- Validates file paths
- Saves a new GeoDataUpload model instance
- Uploads the data and style to GeoServer
4. Triggering Upload
- Go to Geo Data Upload in Django Admin
- Click the top-right button: “Trigger Bulk Upload”