Copyright © 2011 Open Geospatial Consortium 159
Listing 29 - Cancel response example
sps:CancelResponse xmlns:sps
= http:www.opengis.netsps2.0
xmlns:xsi =
http:www.w3.org2001XMLSchema-instance sps:result
sps:StatusReport sps:task
http:www.ogc.orgprocedurecamera1tasks6 sps:task
sps:procedure http:www.ogc.orgprocedurecamera1
sps:procedure sps:requestStatus
Accepted sps:requestStatus
sps:updateTime 2010-08-20T11:23:08+02:00
sps:updateTime sps:StatusReport
sps:result sps:CancelResponse
9.6.5.6 Task Failure
2010-08-20T11:29:00+02:00 - Before the task expires, the client sends a GetStatus request to the service. The since parameter, although supported by the service, is not
used in the request. Thus the current status of the task is requested.
The request is essentially the same as the one shown in Listing 22 2010-08-20T11:29:01+02:00 – The service sends a response with information about the
current status of the task, indicating that the reservation failed at 2010-08- 20T11:28:30+02:00.
Listing 30 - GetStatus response example for failed task
sps:GetStatusResponse xmlns:sps
= http:www.opengis.netsps2.0
xmlns:swe =
http:www.opengis.netswe2.0 xmlns:swes
= http:www.opengis.netswes2.0
xmlns:xsi =
http:www.w3.org2001XMLSchema-instance sps:status
sps:StatusReport sps:task
http:www.ogc.orgprocedurecamera1tasks6 sps:task
sps:event TaskFailed
sps:event sps:procedure
http:www.ogc.orgprocedurecamera1 sps:procedure
sps:requestStatus Accepted
sps:requestStatus sps:statusMessage
xml:lang =
en Your reservation failed because an emergency
tasking action required use of the resources that were reserved for your task.
sps:statusMessage sps:taskStatus
Failed sps:taskStatus
sps:updateTime 2010-08-20T11:28:30+02:00
sps:updateTime sps:StatusReport
sps:status sps:GetStatusResponse
9.6.5.7 Updating a Scheduled Task
Assuming that the task is now in execution the client can update it. 2010-08-20T12:40:00+02:00 – The client sends an Update request to the service,
requesting that the camera be moved 10 degrees left. The latest response time is set to 2010-08-20T12:41:00+02:00.
160 Copyright © 2011 Open Geospatial Consortium
Listing 31 - Update request example
sps:Update 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 Y,relativePositioning,Y,-10,N,N
sps:values sps:ParameterData
sps:taskingParameters sps:latestResponseTime
2010-08-20T12:41:00+02:00 sps:latestResponseTime
sps:targetTask http:www.ogc.orgprocedurecamera1tasks6
sps:targetTask sps:Update
Note: the tasking parameters available for update are a subset of the parameters described in the DescribeTaskingResponse - all parameters that have attribute updatable=false are
not used in an update request. The description of the tasking parameter relevant for an Update request is shown in the following listing.
Listing 32 - DataRecord example with tasking parameter description relevant for Update request
swe:DataRecord xmlns:gml=http:www.opengis.netgml3.2 xmlns:swe=http:www.opengis.netswe2.0 xmlns:xlink=http:www.w3.org1999xlink
xmlns:xsi=http:www.w3.org2001XMLSchema-instance swe:field name=positioningChoice
swe:DataChoice optional=true swe:item name=pointToLookAt
swe:Vector definition=http:www.opengis.netdefpropertyOGC-SPS-X- CAM0PointToLookAt referenceFrame=http:www.opengis.netdefcrsEPSG04979
swe:labelLook Pointerswe:label swe:description3D location where the camera should look atswe:description
swe:coordinate name=lat swe:Quantity
definition=http:sweet.jpl.nasa.gov2.0spaceCoordinates.owlLatitude axisID=Lat swe:labelGeodetic latitudeswe:label
swe:uom xlink:href=deg swe:Quantity
swe:coordinate swe:coordinate name=long
swe:Quantity definition=http:sweet.jpl.nasa.gov2.0spaceCoordinates.owlLongitude axisID=Long
swe:labelGeodetic longitudeswe:label swe:uom code=deg
swe:Quantity swe:coordinate
swe:coordinate name=h swe:Quantity
definition=http:sweet.jpl.nasa.gov2.0spaceCoordinates.owlVertical axisID=h swe:labelEllipsoidal heightswe:label
swe:uom code=m swe:value0swe:value
swe:Quantity swe:coordinate
swe:Vector swe:item
swe:item name=relativePositioning swe:DataRecord definition=http:www.opengis.netdefpropertyOGC-SPS-X-
CAM0RelativePan swe:labelRelative Positioningswe:label
swe:descriptionCamera movement relative to the current positionswe:description
swe:field name=relativeHorizontalPan swe:Quantity definition=http:www.opengis.netdefpropertyOGC-SPS-X-
CAM0RelativeHorizontalPan optional=true swe:uom code=deg
swe:constraint