KVP encoding Sort processing
42
Copyright © 2010 Open Geospatial Consortium
7.9.3 Stored query expression 7.9.3.1
Request Semantics
A stored query expression may be used in a GetPropertyValue see Clause 10, GetFeature see Clause 11, GetFeatureWithLock see Clause 13 or LockFeature see Clause 12 operation to identify a set of features to
be operated upon.
A stored query expression see Figure 11 is a persistent, parameterized, identifiable query expression. A stored query can be repeatedly invoked using its identifier with different values bound to its parameters each
time.
All servers shall implement the ability to list, describe and execute stored queries. All server implementations shall offer a stored query that fetches features based on their identifier. Additional
stored queries that are packaged with the server may also be offered. Clause 14 describes a set of operations for managing stored query expressions.
StoredQuery + id : URI
+ parameter [ 0..] : Parameter
Parameter + name : LocalName
+ value : Any QueryExpression
+ handle [0..1] : CharacterString from ISO 19143 Filter Encoding
Figure 11 — StoredQuery 7.9.3.2
XML encoding
The following XML Schema fragment defines the XML encoding of a stored query expression:
xsd:element name=StoredQuery type=wfs:StoredQueryType substitutionGroup=fes:AbstractQueryExpression
xsd:complexType name=StoredQueryType xsd:complexContent
xsd:extension base=fes:AbstractQueryExpressionType xsd:sequence
xsd:element name=Parameter type=wfs:ParameterType minOccurs=0 maxOccurs=unbounded
xsd:sequence
Copyright © 2010 Open Geospatial Consortium
43
xsd:attribute name=id type=xsd:anyURI use=required xsd:extension
xsd:complexContent xsd:complexType
xsd:complexType name=ParameterType mixed=true xsd:sequence
xsd:any namespace=other processContents=lax minOccurs=0 maxOccurs=1
xsd:sequence xsd:attribute name=name type=xsd:string use=required
xsd:complexType
The abstract type fes:AbstractQueryExpressionType is described in ISO 19143:2010, 6.2.