KVP encoding Stored query identifier Stored query parameters

44 Copyright © 2010 Open Geospatial Consortium Stored query parameters are referenced by name and may thus appear in any order when encoding a stored query invocation.

7.9.3.6 GetFeatureById stored query

All servers shall implement a stored query that accepts a single argument, named id of type xsd:string, and returns a single feature whose identifier is equal to the specified value of the id argument. This stored query shall have the identifier: urn:ogc:def:query:OGC-WFS::GetFeatureById EXAMPLE The following URL invokes the mandatory GetFeatureById stored query to retrieve and present a single feature from the servers data store: http:www.someserver.comwfs.cgi?SERVICE=WFS VERSION=2.0.0 REQUEST=GetFeature STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById ID=INWATERA_1M.1013 8 GetCapabilities operation

8.1 Introduction

The GetCapabilities operation generates a service metadata document describing a WFS service provided by a server. All web feature services shall implement the KVP-encoding of the GetCapabilities operation. A web feature service may optionally implement the XML-encoding of the GetCapabilities operation. 8.2 Request 8.2.1 Request Semantics Figure 12 describes the schema of a GetCapabilities request. GetCapabilities + service : ServiceType = WFS {frozen} GetCapabilities f rom OWS Common Figure 12 — GetCapabilities request 8.2.2 XML encoding The following XML Schema fragment defines the XML-encoding of the GetCapabilities request: xsd:element name=GetCapabilities type=wfs:GetCapabilitiesType xsd:complexType name=GetCapabilitiesType xsd:complexContent Copyright © 2010 Open Geospatial Consortium 45 xsd:extension base=ows:GetCapabilitiesType xsd:attribute name=service type=ows:ServiceType use=required fixed=WFS xsd:extension xsd:complexContent xsd:complexType The base type, ows:GetCapabilitiesType, is defined in the OWS Common Implementation Specification see OGC 06-121r3:2010, 7.2.4.

8.2.3 KVP encoding

The KVP encoding of the GetCapabilities request shall be as specified in OGC 06-121r3:2009, 7.2.2. 8.3 Response 8.3.1 Response Semantics Figure 13 describes the schema of a GetCapabilities response. CapabilitiesBase from OWS Common WFS_Capabilities + WSDL [0. .1] : Any + featureTypes [ 0..1] : FeatureTypeList + filterCapabilities : FilterCapabilities FeatureTypeList + featureType [1..] : FeatureType FeatureTy pe + name : ScopedName + title [0. .] : LocalisedCharact erSt ring + abstract [0..] : LocalisedCharacterString + keywords [ 0..] : MD_Keywords + supportedCRS [ 0..1] : SupportedCRS + outputFormat s : OutputFormatList + envelope [0..] : GM_Envelope + met adat a [ 0..] : Metadata + extendedDescript ion [0..1] : ExtendedDescription SupportedCRS + defaultCRS : SC_CRS + otherCRS [0..] : SC_CRS ExtendedDescription + element [1..] : Element Output FormatList + format [1..] : CharacterString Element + metadata : Any + valueList : ValueList + name : LocalName + type : ScopedName ValueList + value [ 1..] : Any { title-isUniquelocale.language and abstract -isUniquelocale. language } Metadata + value : Any + about : Any Figure 13 — GetCapabilities response