Below are some examples to explain WFS GetFeature requests by using HTTP/GET and KVP encoding.

WFS Get Feature Requests

- GetFeature

Request | Description
--- | ---
GetFeature There are some examples for WFS GetFeature requests below. They explain the use of additional parameters. | ^ up
WFS 1.1.0 GetFeature ZipCodes hits | A GetFeature request, which retrieves feature count of a type (example: ZipCodes) HTTP KVP Request: ...services? SERVICE=WFS VERSION=1.1.0 REQUEST=GetFeature TYPENAME=app:ZipCodes NAMESPACE=xmlns(app=http://www.deegree.org/app) RESULTTYPE=hits
WFS 1.1.0 GetFeature Municipalities_edited maxfeatures | A GetFeature request, which retrieves only 10 features of a type (example: Municipalities_edited) HTTP KVP Request: ...services? SERVICE=WFS VERSION=1.1.0 REQUEST=GetFeature TYPENAME=app:Municipalities_edited NAMESPACE=xmlns(app=http://www.deegree.org/app) MAXFEATURES=10
WFS 1.1.0 GetFeature Springs different coordinate reference system | A GetFeature request, using a different response coordinate reference system (example: Springs) HTTP KVP Request: ...services? SERVICE=WFS VERSION=1.1.0 REQUEST=GetFeature TYPENAME=app:Springs NAMESPACE=xmlns(app=http://www.deegree.org/app) MAXFEATURES=10 SRSNAME=EPSG:4326

WFS 1.1.0 GetFeature Springs just some features with ID

A GetFeature request, which retrieves only some features identified by their ID (CAUTION! IDs may change within the database from time to time) (example: Springs)
HTTP KVP Request:
...services?
SERVICE=WFS
VERSION=1.1.0
REQUEST=GetFeature
TYPENAME=app:Springs
NAMESPACE=xmlns(app=http://www.deegree.org/app)
FEATUREID=SGID024_Springs1,SGID024_Springs6853

WFS 1.1.0 GetFeature Springs just some properties

A GetFeature request, which retrieves some properties of some features (Note that the "geom" property is additionally delivered as it is a mandatory property as per the feature type definition) (example: Springs)
HTTP KVP Request:
...services?
SERVICE=WFS
VERSION=1.1.0
REQUEST=GetFeature
TYPENAME=app:Springs
NAMESPACE=xmlns(app=http://www.deegree.org/app)
PROPERTYNAME=app:objectid,app:code
MAXFEATURES=10

WFS 1.1.0 GetFeature Springs bbox-based filter

A GetFeature request, which retrieves features sorted by a property, combined with a BBOX-based filter (example: Springs)
HTTP KVP Request:
...services?
SERVICE=WFS
VERSION=1.1.0
REQUEST=GetFeature
TYPENAME=app:Springs
NAMESPACE=xmlns(app=http://www.deegree.org/app)
PROPERTYNAME=app:objectid,app:code
SORTBY=app:objectid
FILTER=<ogc:Filter xmlns:app="http://www.deegree.org/app" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc">
<ogc:BBOX>
<ogc:PropertyName>app:geometry</ogc:PropertyName>
<gml:Envelope>
<gml:coord>
<gml:X>343720</gml:X>
<gml:Y>4374533</gml:Y>
</gml:coord>
<gml:coord>
<gml:X>444136</gml:X>
<gml:Y>4433308</gml:Y>
</gml:coord>
</gml:Envelope>
</ogc:BBOX>
</ogc:Filter>