Determining the Feasibility of a Tasking Request

154 Copyright © 2011 Open Geospatial Consortium Listing 17 – GetFeasibility response example sps:GetFeasibilityResponse xmlns:sps = http:www.opengis.netsps2.0 xmlns:xsi = http:www.w3.org2001XMLSchema-instance xmlns:swe = http:www.opengis.netswe2.0 sps:latestResponseTime 2010-08-20T12:00:00+02:00 sps:latestResponseTime sps:result sps:StatusReport sps:task http:www.ogc.orgprocedurecamera1tasks5 sps:task sps:procedure http:www.ogc.orgprocedurecamera1 sps:procedure sps:requestStatus Rejected sps:requestStatus sps:statusMessage xml:lang = en The task was not feasible because the requested time frame is not free sps:statusMessage sps:updateTime 2010-08-20T11:10:12+02:00 sps:updateTime sps:alternative sps:Alternative sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator = , blockSeparator = sps:encoding sps:values 2010-08-20T12:35:00+02:00,2010-08- 20T14:30:00+02:00,N,N sps:values sps:ParameterData sps:taskingParameters sps:Alternative sps:alternative sps:alternative sps:Alternative sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator = , blockSeparator = sps:encoding sps:values 2010-08-20T15:10:00+02:00,2010-08- 20T17:00:00+02:00,N,N sps:values sps:ParameterData sps:taskingParameters sps:Alternative sps:alternative sps:StatusReport sps:result sps:GetFeasibilityResponse

9.6.5 Scheduling a Task Submit Reserve

2010-08-20T11:10:20+02:00 – The client reviews the alternatives and decides to use the first one with slight alteration of the task start time setting it to 2010-08- 20T12:37:00+02:00. The client then adds some more specific parameters to control the camera. It requests that the camera looks at the location [geodetic latitude 51.902112 deg, geodetic longitude 8.192728 deg, ellipsoidal height 0 meter] and sets the focal length to 3.5mm. 2010-08-20T11:12:00+02:00 – The client schedules the task. This can be done either via directly submitting a task or by reserving it first and then confirming it a bit later on which is useful for scenarios where multiple sensors need to be tasked together.

9.6.5.1 Task Submission

2010-08-20T11:12:00+02:00 – The client sends a Submit request to the service. The latest response time is not set for this request, so the client is willing to wait however long the processing of the response is going to take. Copyright © 2011 Open Geospatial Consortium 155 Listing 18 - Submit request example sps:Submit service = SPS version = 2.0.0 xmlns:sps = http:www.opengis.netsps2.0 xmlns:swe = http:www.opengis.netswe2.0 xmlns:xsi = http:www.w3.org2001XMLSchema- instance sps:procedure http:www.ogc.orgprocedurecamera1 sps:procedure sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator = , blockSeparator = sps:encoding sps:values 2010-08-20T12:37:00+02:00,2010-08- 20T14:30:00+02:00,Y,pointToLookAt,51.902112,8.192728,0,Y,3.5 sps:values sps:ParameterData sps:taskingParameters sps:Submit 2010-08-20T11:12:04+02:00 – The service sends a response indicating that the task was accepted and is now in execution, so will be performed as planned. Listing 19 - Submit response example sps:SubmitResponse xmlns:sps = http:www.opengis.netsps2.0 xmlns:xsi = http:www.w3.org2001XMLSchema-instance xmlns:swe = http:www.opengis.netswe2.0 sps:result sps:StatusReport sps:task http:www.ogc.orgprocedurecamera1tasks6 sps:task sps:event TaskSubmitted sps:event sps:percentCompletion sps:percentCompletion sps:procedure http:www.ogc.orgprocedurecamera1 sps:procedure sps:requestStatus Accepted sps:requestStatus sps:taskStatus InExecution sps:taskStatus sps:updateTime 2010-08-20T11:12:04+02:00 sps:updateTime sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator = , blockSeparator = sps:encoding sps:values 2010-08-20T12:37:00+02:00,2010-08- 20T14:30:00+02:00,Y,pointToLookAt,51.902112,8.192728,0,Y,3.5 sps:values sps:ParameterData sps:taskingParameters sps:StatusReport sps:result sps:SubmitResponse

9.6.5.2 Reserving a Task

2010-08-20T11:12:00+02:00 – The client sends a Reserve request to the service. The latest response time is set to 2010-08-20T11:20:00+02:00. The expiration time of the requested reservation is set to 2010-08-20T11:30:00+02:00.