Web Feature Service (WFS)
OGC-compliant WFS 2.0.0 service for querying, updating, and managing geospatial vector features. Supports GML, GeoJSON, KML, and CSV output formats.
GetCapabilities #
Retrieves the WFS capabilities document describing the available operations, layers, coordinate reference systems, and output formats.
DescribeFeatureType #
Returns the XML Schema (XSD) definition for one or more feature types, describing their attributes, types, and geometry elements.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| typeNames | string | Required | Comma-separated list of feature type names (e.g., topp:states) |
| outputFormat | string | Optional | application/vnd.ogc.wfs_xml (default), application/json |
Example Response
GetFeature #
Retrieves feature data from one or more feature types. Supports attribute filtering, bounding box queries, pagination, and multiple output formats.
Description
Use POST for complex queries including OGC Filter expressions, large result sets, or when request URL length exceeds limits. The request body contains the WFS operation as XML.
Example Request Body
Transaction #
Create, update, or delete features. Requires authenticated access with appropriate write permissions.
Authentication
All transaction operations require authentication. Include an API key in the header:
Insert Example
Supported Operations
| Operation | Description | Auth Required |
|---|---|---|
| Insert | Create new features | Yes |
| Update | Modify existing feature properties | Yes |
| Delete | Remove features by OGC Filter or feature ID | Yes |
Available Feature Types #
All published feature types accessible via this WFS endpoint.
topp:states
US State boundaries with demographic attributes
topp:roads
Road network across Tasmania, Australia
topp:tasmania_towns
Towns and settlements in Tasmania
topp:tasmania_state_boundaries
State boundary polygons for Tasmania
Query Builder #
Construct and test WFS GetFeature requests interactively.
βοΈ Build a Query
Code Examples #
Integrate with GeoServer WFS from your preferred language or framework.
Output Formats #
Supported output formats for GetFeature and DescribeFeatureType operations.
| Format | MIME Type | GetFeature | DescribeFeatureType | Notes |
|---|---|---|---|---|
| GeoJSON | application/json | β | β | Recommended for web applications |
| GML 3.2 | application/gml+xml | β | β | OGC standard format (default) |
| KML | application/vnd.google-earth.kml+xml | β | β | Compatible with Google Earth |
| CSV | text/csv | β | β | Tabular data export |
| SHAPE-ZIP | application/zip | β | β | Esri Shapefile archive |