XML Encoding Requirements Class: GetSensorAvailability Operation

OGC 10-135 EO Satellite Tasking Extension for SPS complexType element sequence extension complexContent complexType Requirement http:www.opengis.netspecEOSPS2.0reqgsarequest-valid Req 41. The XML message encoding a GetSensorAvailability request shall be valid with respect to the getSensorAvailability.xsd XML schema. The server shall correctly reject an invalid request by returning the proper correctly formatted exception as defined in [OGC 06‐121] and [OGC 09‐001]. The following XML schema snippet normalizes the XML encoding of the GetSensorAvailabilityResponse class. element name = GetSensorAvailabilityResponse type = eosps:GetSensorAvailabilityResponseType complexType name = GetSensorAvailabilityResponseType complexContent extension base = swes:ExtensibleResponseType sequence element name = responsePeriod complexType sequence element ref = gml:TimePeriod sequence complexType element element name = availabilityPeriod minOccurs = maxOccurs = unbounded complexType sequence element ref = gml:TimePeriod sequence complexType element sequence extension complexContent complexType Requirement http:www.opengis.netspecEOSPS2.0reqgsaresponse-valid Req 42. The XML message encoding a GetSensorAvailabilityResponse shall be valid with respect to the getSensorAvailability.xsd XML schema. Below is an example GetSensorAvailability request along with the corresponding response: GetSensorAvailability service = EOSPS version = 2.0 xmlns = http:www.opengis.neteosps2.0 xmlns:gml = http:www.opengis.netgml3.2 80 Copyright © 2011 Open Geospatial Consortium EO Satellite Tasking Extension for SPS OGC 10-135 sensor http:ws.spotimage.comspssensorsSPOT-Constellation sensor requestPeriod gml:TimePeriod gml:id = PERIOD gml:beginPosition 2010-06-01 gml:beginPosition gml:endPosition 2010-08-31 gml:endPosition gml:TimePeriod requestPeriod GetSensorAvailability GetSensorAvailabilityResponse xmlns = http:www.opengis.neteosps2.0 xmlns:gml = http:www.opengis.netgml3.2 responsePeriod gml:TimePeriod gml:id = PERIOD gml:beginPosition 2010-06-01 gml:beginPosition gml:endPosition 2010-08-31 gml:endPosition gml:TimePeriod responsePeriod availabilityPeriod gml:TimePeriod gml:id = A1 gml:beginPosition 2010-06-21 gml:beginPosition gml:endPosition 2010-07-04 gml:endPosition gml:TimePeriod availabilityPeriod availabilityPeriod gml:TimePeriod gml:id = A2 gml:beginPosition 2010-08-21 gml:beginPosition gml:endPosition 2010-08-28 gml:endPosition gml:TimePeriod availabilityPeriod GetSensorAvailabilityResponse

8.1.4 Exceptions

When an SPS EO server encounters an error while performing a GetSensorAvailability operation, it shall return an exception report message as specified in the Sensor Planning Service 2.0 standard [OGC 09-000]. The following table presents exception codes that are applicable to the GetSensorAvailability operation: Exception Codes Applicable OperationNotSupported Yes MissingParameterValue Yes InvalidParameterValue Yes VersionNegotiationFailed No InvalidUpdateSequence No OptionNotSupported No NoApplicableCode Yes InvalidRequest Yes Copyright © 2011 Open Geospatial Consortium 81 OGC 10-135 EO Satellite Tasking Extension for SPS An InvalidParameterValue exception shall be returned when the sensor identifier is not recognized by the service. Requirement http:www.opengis.netspecEOSPS2.0reqgsasensor-id-valid Req 43. The sensor parameter of a GetSensorAvailability request shall contain the identifier of a sensor listed in the capabilities. If this is not the case, the server shall return an exception with the code “InvalidParameterValue” as specified in [OGC 06‐ 121]. 82 Copyright © 2011 Open Geospatial Consortium