Back to all articles
Guide

The Complete Guide to WFS (Web Feature Service)

Understand what a WFS is, how it differs from WMS, how to query it, and how to download features from any Web Feature Service endpoint using free browser tools.

Muhammad Junaid BaigOctober 6, 20269 min read

If you have ever worked with geospatial web services, you have probably heard the acronym "WFS" alongside "WMS." Both are OGC standards, both serve geospatial data over the web, and both start with "Web." But they do fundamentally different things, and confusing them can waste hours.

This guide explains what a WFS is, when to use it, how to query it, and how to pull data out of it in a usable format.

What is a WFS?

WFS stands for Web Feature Service. It is an Open Geospatial Consortium (OGC) standard for serving vector features — points, lines, and polygons with attributes — over HTTP.

In plain terms: a WFS gives you the actual data. When you request features from a WFS, you receive their geometry and attributes as GML (Geography Markup Language), the OGC's XML-based format, or as GeoJSON if the server supports it.

WFS vs WMS: the key difference

WMS (Web Map Service) returns images. WFS returns data.

AspectWMSWFS
ReturnsRendered images (PNG, JPEG)Vector features with attributes
Client can styleNo — server renders the styleYes — client styles each feature
Client can query attributesLimited (GetFeatureInfo only)Yes — full access
File sizeSmall (image)Large (raw data)
Best forBackground map layersAnalysis, editing, downloads
AnalogyA printed mapA database export

Common WFS operations

The WFS standard defines a handful of operations. In practice, three matter most for downloading data:

GetCapabilities

Returns an XML document describing everything the server offers: which layers exist, what coordinate systems are supported, and what operations are available. This is always your first request.

https://example.com/geoserver/wfs?service=WFS&request=GetCapabilities

DescribeFeatureType

Returns the schema of a specific layer — the field names and data types. Useful before you download so you know what you are getting.

https://example.com/geoserver/wfs?service=WFS&request=DescribeFeatureType&typeName=my:layer

GetFeature

This is the one that actually downloads features. You specify a layer, a filter, and an output format.

https://example.com/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeName=my:layer&outputFormat=application/json

Reading a WFS URL

A typical WFS GetFeature URL is made up of key-value pairs. Here are the ones you will see most often:

ParameterMeaning
service=WFSDeclares that this is a WFS request
version=2.0.0WFS protocol version (1.0.0, 1.1.0, 2.0.0)
request=GetFeatureThe operation you want
typeName=ns:layerThe specific layer to fetch
outputFormat=...Format of the response (GML, GeoJSON, shapefile)
count=100Max number of features to return
bbox=minx,miny,maxx,maxySpatial filter (bounding box)
cql_filter=...Attribute filter (server-specific syntax)
srsName=EPSG:4326The coordinate system of the response

Common output formats

Different WFS servers support different output formats. The most common are:

  • GML (application/gml+xml) — the OGC standard, always supported
  • GeoJSON (application/json) — supported by most modern servers
  • Shapefile (application/zip) — supported by GeoServer and some others
  • KML — for Google Earth
  • CSV — sometimes available

If you just want to see the data, ask for GeoJSON. If you need to import it into desktop GIS, ask for Shapefile.

Where to find WFS endpoints

WFS services are common in:

  • National spatial data infrastructures (e.g. INSPIRE in the EU)
  • Government open data portals
  • Research institutions and universities
  • Environmental monitoring agencies (NOAA, USGS, EEA)
  • Municipal and regional GIS departments

The URL almost always ends in something like /wfs, /geoserver/wfs, or /ogc.

How to download WFS data with a browser tool

The easiest way to download from a WFS is through a dedicated browser tool. Here is the workflow with Geo Server Data Downloader:

  1. Copy the WFS root URL (usually ends in /wfs).
  2. Paste it into the Downloader's URL field.
  3. The tool fetches GetCapabilities and lists available layers.
  4. Select the layer you want and click Add.
  5. The layer appears on the map.
  6. Use Bulk Export to download as Shapefile, GeoJSON, KML, or GeoPackage.

Frequently asked questions

Is WFS free to use?

Yes — WFS is an open standard, and running a WFS server requires no license fee. The data itself may have usage restrictions, so always check the metadata.

How does WFS compare to ArcGIS REST FeatureServer?

Both serve vector data over HTTP, but WFS is an OGC standard supported by many servers (GeoServer, MapServer, QGIS Server, deegree), while ArcGIS REST FeatureServer is Esri-specific. In practice, WFS is more portable; FeatureServer has a richer query API.

Why is my WFS request timing out?

Large WFS requests can be slow. Try adding a bbox filter to restrict the geography, or a count parameter to limit the number of features. If the server supports it, request GeoJSON instead of GML — it is far smaller.

Summary

WFS is the open standard for serving vector data over the web. It is more capable than WMS for analysis, works across many server platforms, and — with the right tool — is easy to download.

#WFS#OGC#Standards#Web Services
Written by Muhammad Junaid Baig, a geospatial developer who builds and maintains Geo Server Data Downloader. About the author. Spotted a mistake or an outdated step? Tell us and we will fix it.

Related guides

Ready to try it yourself?

Export ArcGIS REST services, WFS endpoints, and ArcGIS Online datasets to Shapefile, GeoJSON, KML, or GeoPackage — all in your browser.

Open the Downloader