WFS vendor parameters

WFS vendor parameters are non-standard request parameters defined by an implementation to provide enhanced capabilities. GeoServer supports a variety of vendor-specific WFS parameters.

CQL filters

In WFS GetFeature GET requests, the cql_filter parameter can be used to specify a filter in ECQL (Extended Common Query Language) format. ECQL provides a more compact and readable syntax compared to OGC XML filters.

For full details see the ECQL Reference and CQL and ECQL tutorial.

The following example illustrates a GET request OGC filter:


Using ECQL, the identical filter would be defined as follows:


Format options

The format_options parameter is a container for other parameters that are format-specific. The syntax is:


The supported format option is:

  • callback (default is parseResponse)—Specifies the callback function name for the JSONP response format
  • id_policy (default is true)- Specifies id generation for the JSON output format. To include feature id in output use an attribute name, or use true for feature id generation. To avoid the use of feature id completely use false.


As WFS 1.1.0 and 2.0.0 both support data reprojection, GeoServer can store the data in one projection and return GML in another projection. While not part of the specification, GeoServer supports this using WFS 1.0.0 as well. When submitting a WFS GetFeature GET request, you can add this parameter to specify the reprojection SRS as follows:


The code for the projection is represented by <srsName>, for example EPSG:4326. For POST requests, you can add the same code to the Query element.

XML request validation

GeoServer is less strict than the WFS specification when it comes to the validity of an XML request. To force incoming XML requests to be valid, use the following parameter:


The default option for this parameter is false.

For example, the following request is invalid:

<wfs:GetFeature service="WFS" version="1.0.0"
  <Query typeName="topp:states"/>

The request is invalid for two reasons:

  • The Query element should be prefixed with wfs:.
  • The namespace prefix has not been mapped to a namespace URI.

That said, the request would still be processed by default. Executing the above command with the strict=true parameter, however, would result in an error. The correct syntax should be:

<wfs:GetFeature service="WFS" version="1.0.0"
  <wfs:Query typeName="topp:states"/>

GetCapabilities namespace filter

WFS GetCapabilities requests may be filtered to return only those layers that correspond to a particular namespace by adding the <namespace> parameter to the request.


This parameter only affects GetCapabilities requests.

To apply this filter, add the following code to your request:


Although providing an invalid namespace will not result in any errors, the GetCapabilities document returned will not contain any layer information.


Using this parameter may result your GetCapabilities document becoming invalid, as the WFS specification requires the document to return at least one layer.


This filter is related to Virtual OWS Services.