Master the four core OGC services in GeoServer: map rendering with WMS, feature access and transactions with WFS, coverage access with WCS, and processing workflows with WPS.
The Open Geospatial Consortium (OGC) defines standards that enable interoperable access to geospatial data. GeoServer implements four core OGC services: WMS for map rendering, WFS for vector feature access and editing, WCS for raster coverage access, and WPS for geospatial processing workflows.
This module equips learners with the ability to configure, query, and troubleshoot each service, understand request/response patterns, use filters and vendor options, perform WFS-T editing, chain WPS processes, and select appropriate output formats for different clients.
Web Map Service (WMS) renders spatial data as map images. Clients request map images for a bounding box and layer set. WMS is ideal for visualization but does not return raw feature data.
# Example WMS GetMap request
/geoserver/wms?
service=WMS&
version=1.3.0&
request=GetMap&
layers=workspace:roads&
bbox=-10,40,10,60&
width=800&
height=600&
srs=EPSG:4326&
format=image/png
Web Feature Service (WFS) returns raw vector features in formats such as GeoJSON, GML, and shapefile. WFS is essential for analysis, data integration, and editing workflows.
startIndex and count for paging, and sortBy for ordering.# Example WFS GetFeature request with CQL filter
/geoserver/wfs?
service=WFS&
version=2.0.0&
request=GetFeature&
typeName=workspace:roads&
outputFormat=application/json&
CQL_FILTER=type='highway' AND lanes > 2
| Filter Type | Example | Use Case |
|---|---|---|
| Comparison | lanes > 2 | Numeric filtering |
| Equality | type = 'highway' | Category filtering |
| Logical | type = 'road' AND lanes > 2 | Combined conditions |
| Spatial | INTERSECTS(geom, POINT(10 45)) | Spatial filtering |
WFS-T extends WFS to support transactional editing. Clients can insert, update, and delete features directly via WFS requests, enabling web-based editing workflows.
GetFeatureWithLock to manage concurrency.<wfs:Transaction service="WFS" version="2.0.0">
<wfs:Insert>
<workspace:roads>
<workspace:name>New Road</workspace:name>
<workspace:type>highway</workspace:type>
</workspace:roads>
</wfs:Insert>
</wfs:Transaction>
Web Coverage Service (WCS) provides access to raster coverages. Unlike WMS, which returns rendered images, WCS returns raw raster data suitable for analysis.
# Example WCS GetCoverage request
/geoserver/wcs?
service=WCS&
version=2.0.1&
request=GetCoverage&
coverageId=workspace:elevation&
subset=Lat(40,50)&subset=Long(-10,10)&
format=image/tiff
Web Processing Service (WPS) enables execution of geospatial processes such as buffering, interpolation, and raster analysis. Processes can be chained to form complex workflows.
| Operation | Purpose | Example |
|---|---|---|
| GetCapabilities | List available processes | Discover buffer, clip, interpolate |
| DescribeProcess | Describe a process | Input/output definitions |
| Execute | Run a process | Buffer a geometry |
Choosing the right output format improves compatibility and performance. GeoServer supports many formats across WMS, WFS, and WCS.
| Format | Use Case | Service |
|---|---|---|
| GeoJSON | Web applications | WFS |
| KML | Google Earth | WMS, WFS |
| GML | OGC interoperability | WFS |
| Shapefile | Desktop GIS | WFS |
| GeoTIFF | Raster analysis | WCS |
In this lab, you will query features with CQL filters, edit features via WFS-T, and build a WPS processing chain to buffer and export results.
GetFeature with a CQL filter (e.g., type='highway') and GeoJSON output.| Criteria | Weight |
|---|---|
| WMS request construction and GetFeatureInfo | 15% |
| WFS queries and CQL filters | 20% |
| WFS-T transactional operations | 25% |
| WCS coverage retrieval | 15% |
| WPS process chaining | 15% |
| Troubleshooting report | 10% |
Pass mark for this module: 70%