38
Copyright © 2010 Open Geospatial Consortium
The fes:LogicalOperators element is used to indicate that the filter can process And
, Or
and Not
operators. The XML encoding for the fes:LogicalOperators element is declared by the following XML schema fragment:
xsd:element name=LogicalOperators xsd:complexType
xsd:element
The fes:ComparisonOperators element is used to indicate which comparison operators are supported by a service. The XML encoding of the fes:ComparisonOperators element is declared by the following XML
Schema fragment:
xsd:complexType name=ComparisonOperatorsType xsd:sequence maxOccurs=unbounded
xsd:element name=ComparisonOperator type=fes:ComparisonOperatorType
xsd:sequence xsd:complexType
xsd:complexType name=ComparisonOperatorType xsd:attribute name=name
type=fes:ComparisonOperatorNameType use=required xsd:complexType
xsd:simpleType name=ComparisonOperatorNameType xsd:union
xsd:simpleType xsd:restriction base=xsd:string
xsd:enumeration value=PropertyIsEqualTo xsd:enumeration value=PropertyIsNotEqualTo
xsd:enumeration value=PropertyIsLessThan xsd:enumeration value=PropertyIsGreaterThan
xsd:enumeration value=PropertyIsLessThanOrEqualTo xsd:enumeration value=PropertyIsGreaterThanOrEqualTo
xsd:enumeration value=PropertyIsLike xsd:enumeration value=PropertyIsNull
xsd:enumeration value=PropertyIsNil xsd:enumeration value=PropertyIsBetween
xsd:restriction xsd:simpleType
xsd:simpleType xsd:restriction base=xsd:string
xsd:pattern value=extension:\w{2,} xsd:restriction
xsd:simpleType xsd:union
xsd:simpleType
The pattern “extension: OperatorName
” shall be used to list any additional comparison operators that may be added to the filter syntax see 7.12. The token “
OperatorName ” is a placeholder for the actual name of the
additional operator.
7.14.5 Spatial capabilities
The fes:Spatial_Capabilities element can be specified by a service to advertise which spatial operators and geometric operands the service supports. If the fes:Spatial_Capabilities element is not specified, a client shall
assume that the service does not support any spatial operators.
A service that supports spatial filtering shall include a spatial capabilities section in its capabilities document. Spatial capabilities include the ability to filter spatial data of specified geometry types based on the definition
of a bounding box BBOX as well as the ability to process the spatial operators declared in this International Standard: Equals, Disjoint, Touches, Within, Overlaps, Crosses, Intersects, Contains, DWithin and Beyond.
Spatial capabilities are encoded according to the following XML Schema fragments:
xsd:complexType name=Spatial_CapabilitiesType xsd:sequence
xsd:element name=GeometryOperands type=fes:GeometryOperandsType
xsd:element name=SpatialOperators type=fes:SpatialOperatorsType
xsd:sequence
Copyright © 2010 Open Geospatial Consortium
39
xsd:complexType xsd:complexType name=GeometryOperandsType
xsd:sequence xsd:element name=GeometryOperand maxOccurs=unbounded
xsd:complexType xsd:attribute name=name type=xsd:QName use=required
xsd:complexType xsd:element
xsd:sequence xsd:complexType
xsd:complexType name=SpatialOperatorsType xsd:sequence
xsd:element name=SpatialOperator type=fes:SpatialOperatorType
maxOccurs=unbounded xsd:sequence
xsd:complexType xsd:complexType name=SpatialOperatorType
xsd:sequence xsd:element name=GeometryOperands
type=fes:GeometryOperandsType minOccurs=0
xsd:sequence xsd:attribute name=name type=fes:SpatialOperatorNameType
xsd:complexType xsd:simpleType name=SpatialOperatorNameType
xsd:union xsd:simpleType
xsd:restriction base=xsd:string xsd:enumeration value=BBOX
xsd:enumeration value=Equals xsd:enumeration value=Disjoint
xsd:enumeration value=Intersects xsd:enumeration value=Touches
xsd:enumeration value=Crosses xsd:enumeration value=Within
xsd:enumeration value=Contains xsd:enumeration value=Overlaps
xsd:enumeration value=Beyond xsd:enumeration value=DWithin
xsd:restriction xsd:simpleType
xsd:simpleType xsd:restriction base=xsd:string
xsd:pattern value=extension:\w{2,} xsd:restriction
xsd:simpleType xsd:union
xsd:simpleType
A service that implements this International Standard shall list the spatial operators and geometry operand types that it supports as the content of the fes:SpatialCapabilities element of its filter capabilities document.