Response Exceptions Examples GetResult Operation

Copyright © 2012 Open Geospatial Consortium. 75 Table 45: default context for GetResult request parameters with pre-defined target property Filter Property Target property for PropertyIsEqualTo comparison operator offering Capabilities.contents.offering observedProperty OM_Observation.observedProperty featureOfInterest OM_Observation.featureOfInterest NOTE : in an XML based SOS implementation the filter context can be defined via XPath expressions – see Table 48 in Subclause 13.1.

11.2.2.2 Response

The SOS GetResultResponse data type derives from the SWES ExtensibleResponse data type defined in OGC 09-001 and inherits its properties. Table 46: Properties of GetResultResponse data type Name Definition Data type and values Multiplicity and use resultValues Encoded value blocks representing the result values of the observations targeted by the GetResult request. Any One mandatory

11.2.2.3 Exceptions

Requirement http:www.opengis.netspecSOS2.0reqresultRetrievalgr-response Requirement 100 In addition to the properties inherited from SWES ExtensibleResponse, the SOS GetResultResponse shall include the properties according to Table 46 Requirement http:www.opengis.netspecSOS2.0reqresultRetrievalgr-response-empty Requirement 101 If no observations match the parameters of the GetResult request then the resultValues property of the GetResultResponse shall be empty. Requirement http:www.opengis.netspecSOS2.0reqresultRetrievalgr-exception 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