Requirements Class: Spatial Filtering Profile

76 Copyright © 2012 Open Geospatial Consortium. Listing 9: exception codes applicable to the GetResult operation  OperationNotSupported  MissingParameterValue  InvalidParameterValue  OptionNotSupported  NoApplicableCode  InvalidRequest  RequestExtensionNotSupported

11.2.2.4 Examples

Example 25 An example of request and response of the XML implementation of the GetResult operation can be found here: http:schemas.opengis.netsos2.0examplesresultHandlingGetResult1.xml http:schemas.opengis.netsos2.0examplesresultHandlingGetResult1_response.xml 12 Spatial Filtering Profile In this profile of the SOS 2.0, the observations offered by an SOS server are restricted to spatial observations which provide a well-defined parameter for carrying the sampling geometry of the observation. If an SOS server follows this profile, spatial filters can target the sampling geometries of observations.

12.1 Requirements Class: Spatial Filtering Profile

Requirement 102 When an SOS server encounters an error while performing a GetResult operation, it shall return an exception message as specified in Clause 15 of [OGC 09-001] with applicable exception code as defined in Listing 9. The meaning of each exception code shall be as defined in OGC 06-121r3 and OGC 09-001. Requirements Class http:www.opengis.netspecSOS2.0reqspatialFilteringProfile Target Type Web Service Dependency http:www.opengis.netspecSOS2.0reqcore Dependency http:www.opengis.netspecOMXML2.0reqSpatialObservation Requirement http:www.opengis.netspecSOS2.0reqspatialFilteringProfileobservationRestriction Requirement http:www.opengis.netspecSOS2.0reqspatialFilteringProfileobservedAreaRestriction Copyright © 2012 Open Geospatial Consortium. 77 The requirements class “Spatial Observation Data” http:www.opengis.netspecOMXML2.0reqSpatialObservation defined in [OGC 10-025] Subclause 7.13 constrains the encoding of an observation to have one parameter which contains the sampling geometry of the observation. The sampling geometry represents the spatial extent where the observation result applies to. This is usually the extent of the observations feature of interest but may also be computed or determined by other means. Example 26 An example of such a spatial observation as defined by [OGC 10-025] with sampling location parameter is shown here: ?xml version=1.0 encoding=UTF-8? om:OM_Observation … om:parameter om:NamedValue om:name xlink:href=http:www.opengis.netdefparam-nameOGC- OM2.0samplingGeometry om:value gml:Point gml:id=SamplingPoint gml:pos srsName=urn:ogc:def:crs:EPSG::432652.9 7.52gml:pos gml:Point om:value om:NamedValue om:parameter … om:OM_Observation The following requirement restricts the observations served by an SOS server to be such spatial observations. The sampling geometry of an observation is encoded as a parameter of the observation. The observedArea provided in the Capabilities is restricted to represent the minimum bounding box of the sampling geometries of the observations. Requirement http:www.opengis.netspecSOS2.0reqspatialFilteringProfileobservationRestriction Requirement 103 All observations provided by the SOS server shall be encoded compliant to the requirements class http:www.opengis.netspecOMXML2.0reqSpatialObservation as defined in [OGC 10-025] Subclause 7.13. Requirement http:www.opengis.netspecSOS2.0reqspatialFilteringProfileobservedAreaRestriction Requirement 104 The observedArea of ObservationOfferings provided in the Contents section of the Capabilities document shall contain a geometry representing the minimum bounding box of the sampling geometries of the observations that belong to the offering. 78 Copyright © 2012 Open Geospatial Consortium. The spatial filter of a GetObservation or, if supported, of a GetResult operation request can target the sampling geometries of the observations by choosing the following value for the valueReference of the spatialFilter 13 : http:www.opengis.netreqomxml2.0datasamplingGeometry Example 27 An example of request of the XML implementation of the GetObservation operation conformant to this profile can be found at: http:schemas.opengis.netsos2.0examplesspatialFilteringProfileGetObservation1_spatialFilteringProfile.xml 13 Binding Extension This Clause specifies concrete encodings and bindings for the operations of the SOS 2.0 standard. Those bindings describe how SOS 2.0 clients and servers can communicate with each other.

13.1 Requirements Class: XML Encoding