InsertObservation

Introduction

The InsertObservation operation allows the client to insert new observations for a sensor system. This is a request to an SOS to perform the Insert operation. The request includes the sensor ID that was obtained from the RegisterSensor operation. The observation must be encoded in XML following the O&M specification. InsertObservation is mandatory for the transactional profile. (SOS-Spec, OGC 06-009r6)

Examples

  • not mobile and Measurement
<InsertObservation 
service="SOS" version="1.0.0" xmlns="http://www.opengis.net/sos/1.0" xmlns:ows="http://www.opengis.net/ows/1.1"
 xmlns:ogc="http://www.opengis.net/ogc" xmlns:om="http://www.opengis.net/om/1.0" mlns:sos="http://www.opengis.net/sos/1.0"
xmlns:sa="http://www.opengis.net/sampling/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:swe="http://www.opengis.net/swe/1.0.1"
 xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/1.0
 http://mars.uni-muenster.de/sosmobile/trunk/sos/1.0.0/sosInsert.xsd http://www.opengis.net/sampling/1.0 http://schemas.opengis.net/sampling/1.0.0/sampling.xsd 
http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/extensions/observationSpecialization_override.xsd" >
<AssignedSensorId>urn:ogc:object:feature:Sensor:IFGI:ifgi-sensor-3</AssignedSensorId>
   <om:Measurement>
        <om:samplingTime>
             <gml:TimeInstant>
                  <gml:timePosition>2008-04-01T17:44:15+00</gml:timePosition>
             </gml:TimeInstant>
        </om:samplingTime>
        <om:procedure xlink:href="urn:ogc:object:feature:Sensor:IFGI:ifgi-sensor-3"/>
        <om:observedProperty xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>    
        <om:featureOfInterest>
             <sa:SamplingPoint gml:id="foi_10001">
                 <gml:name>FOI_EINS</gml:name>
                 <sa:sampledFeature xlink:href=""/>
                 <sa:position>
                   <gml:Point>
                     <gml:pos srsName="urn:ogc:def:crs:EPSG:4326">8.86667 51.883906</gml:pos>
               </gml:Point>
                 </sa:position>
               </sa:SamplingPoint>
        </om:featureOfInterest>
        <om:result uom="degree">10.0</om:result>
   </om:Measurement>
</InsertObservation>

  • mobile and Measurement
<InsertObservation 
service="SOS" version="1.0.0" mobileEnabled="true" xmlns="http://www.opengis.net/sos/1.0" xmlns:ows="http://www.opengis.net/ows/1.1"
 xmlns:ogc="http://www.opengis.net/ogc" xmlns:om="http://www.opengis.net/om/1.0" mlns:sos="http://www.opengis.net/sos/1.0"
xmlns:sa="http://www.opengis.net/sampling/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:swe="http://www.opengis.net/swe/1.0.1"
 xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/1.0
 http://mars.uni-muenster.de/sosmobile/trunk/sos/1.0.0/sosInsert.xsd http://www.opengis.net/sampling/1.0 http://schemas.opengis.net/sampling/1.0.0/sampling.xsd 
http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/extensions/observationSpecialization_override.xsd" >
<AssignedSensorId>urn:ogc:object:feature:Sensor:IFGI:ifgi-sensor-3</AssignedSensorId>
   <om:Measurement>
        <om:samplingTime>
             <gml:TimeInstant>
                  <gml:timePosition>2008-04-01T17:44:15+00</gml:timePosition>
             </gml:TimeInstant>
        </om:samplingTime>
        <om:procedure xlink:href="urn:ogc:object:feature:Sensor:IFGI:ifgi-sensor-3"/>
        <om:observedProperty xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>
        <om:domainFeature>
          <GenericDomainFeature gml:id="investigationArea1">
           <gml:description>Paderborn</gml:description>
           <gml:name>City of paderborn</gml:name>
           <gml:location>
            <gml:Polygon srsName="4326" xsi:type="gml:PolygonType">
               <gml:exterior>
                 <gml:LinearRing xsi:type="gml:LinearRingType">
                      <gml:coordinates>8.76667 51.7167, 8.76667 52.7167, 9.76667 52.7167, 9.76667 51.7167, 8.76667 51.7167</gml:coordinates>
                 </gml:LinearRing>
               </gml:exterior>
            </gml:Polygon>
           </gml:location>
         </GenericDomainFeature>
        </om:domainFeature>    
        <om:featureOfInterest>
             <sa:SamplingPoint gml:id="foi_10001">
                 <gml:name>FOI_EINS</gml:name>
                 <sa:sampledFeature xlink:href=""/>
                 <sa:position>
                   <gml:Point>
                     <gml:pos srsName="urn:ogc:def:crs:EPSG:4326">8.86667 51.883906</gml:pos>
               </gml:Point>
                 </sa:position>
               </sa:SamplingPoint>
        </om:featureOfInterest>
        <om:result uom="degree">10.0</om:result>
   </om:Measurement>
</InsertObservation>

For more information look at the SOS specification or at SosTransactionalProfile.

-- CarstenHollmann - 22 Apr 2009

This topic: SensorWeb > SensorObservationService > SosOperations > InsertObservation
Topic revision: 22 Apr 2009, CarstenHollmann
Legal Notice | Privacy Statement


This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback