Inserting multiple observations

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Inserting multiple observations

umut
This post was updated on .
Hi all
I have been working on a sensor web application, using swe (52north implementation) underneath. until now we have been simulating sensor data, sending observations one by one. But now we switch to real sensors.
The problem is that sensor gateway buffers data thus we want to send many observations to SOS in a single shot. I tried the xml below however it didn't work.
Any suggestions?  

here is the xml:



<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:sos="http://www.opengis.net/sos/1.0"
  xmlns:ows="http://www.opengis.net/ows/1.1">
  <env:Body>
    <sos:InsertObservation 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" xmlns: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://schemas.opengis.net/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"
      service="SOS" version="1.0.0">
 
 <sos:AssignedSensorId>MySensor1</sos:AssignedSensorId>
 
 <om:Observation>
 
  <om:samplingTime>
   <gml:TimePeriod xsi:type="gml:TimePeriodType">
    <gml:beginPosition>2012-03-09T06:00:00+02:00</gml:beginPosition>
    <gml:endPosition>2012-03-09T11:00:00+02:00</gml:endPosition>
   </gml:TimePeriod>
  </om:samplingTime>
   
  <om:procedure xlink:href="urn:ogc:object:feature:Sensor:All-Types-Station" />
   
  <om:observedProperty>
   <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
    <gml:name>resultComponents</gml:name>
    <swe:component xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
    <swe:component xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature" />
   </swe:CompositePhenomenon>
  </om:observedProperty>
   
  <om:featureOfInterest>
   <gml:FeatureCollection>
    <gml:featureMember>
     <sa:SamplingPoint gml:id="AllTypesFoi">
      <gml:name>AllTypesFoi</gml:name>
      <sa:sampledFeature xlink:href=""/>
      <sa:position>
       <gml:Point>
        <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">52.9 7.52</gml:pos>
       </gml:Point>
      </sa:position>
     </sa:SamplingPoint>
    </gml:featureMember>
   </gml:FeatureCollection>
  </om:featureOfInterest>
   
  <om:result>
   <swe:DataArray>
     
    <swe:elementCount>
     <swe:Count>
      <swe:value>5</swe:value>
     </swe:Count>
    </swe:elementCount>
       
    <swe:elementType name="Components">
     <swe:DataRecord>
      <swe:field name="Time">
       <swe:Time definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
      </swe:field>
      <swe:field name="temperature">
       <swe:Quantity definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature">
        <swe:uom code="C" />
       </swe:Quantity>
      </swe:field>
     </swe:DataRecord>
    </swe:elementType>
       
    <swe:encoding>
     <swe:TextBlock decimalSeparator="." tokenSeparator=","  blockSeparator=";" />
    </swe:encoding>
       
    <swe:values>
    2012-03-09T06:00:00+02:00,6;
    2012-03-09T07:00:00+02:00,7;
    2012-03-09T08:00:00+02:00,8;
    2012-03-09T09:00:00+02:00,9;
    2012-03-09T10:00:00+02:00,10;
    2012-03-09T10:00:00+02:00,11;
    </swe:values>
       
   </swe:DataArray>
  </om:result>
 </om:Observation>
    </sos:InsertObservation>
  </env:Body>
</env:Envelope>
Reply | Threaded
Open this post in threaded view
|

Re: Inserting multiple observations

Daniel Nüst - 52N
Am 09.03.2012 10:42, schrieb umut:
> I have been working on a sensor web application, using swe (52north
> implementation) underneath. until now we have seen simulating sensor data,
> sending observations one by one. But now we switch to real sensors.
> The problem is that sensor gateway buffers data thus we want to send many
> observations to SOS in a single shot. I tried the xml below however it
> didn't work.

How do you know it doesn't work?

Is there an exception?
What is the output in the log file?
What version of the SOS do you use?

> Any suggestions?

Try including the feature of interest in the DataArray as well, check
out the example at [1]. It seems like redundant information, but you
could also have more than one feature in the insert operation...

Hth,
Daniel

[1]
https://svn.52north.org/cgi-bin/viewvc.cgi/main/SOS/Service/trunk/SOS/52n-sos/52n-sos-service/src/main/webapp/examples/sos_v100/requests/InsertObservation/InsertObservation_GenericObs_allTypes.xml?view=markup&root=sensorweb

>
> here is the xml:
>
>
>
> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
> xmlns:sos="http://www.opengis.net/sos/1.0"
>   xmlns:ows="http://www.opengis.net/ows/1.1">
>   <env:Body>
>     <sos:InsertObservation 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"
> xmlns: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://schemas.opengis.net/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"
>       service="SOS" version="1.0.0">
>  
>  <sos:AssignedSensorId>MySensor1</sos:AssignedSensorId>
>  
>  <om:Observation>
>  
>   <om:samplingTime>
>    <gml:TimePeriod xsi:type="gml:TimePeriodType">
>     <gml:beginPosition>2012-03-09T06:00:00+02:00</gml:beginPosition>
>     <gml:endPosition>2012-03-09T11:00:00+02:00</gml:endPosition>
>    </gml:TimePeriod>
>   </om:samplingTime>
>    
>   <om:procedure xlink:href="urn:ogc:object:feature:Sensor:All-Types-Station"
> />
>    
>   <om:observedProperty>
>    <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
>     <gml:name>resultComponents</gml:name>
>     <swe:component
> xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
>     <swe:component
> xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature" />
>    </swe:CompositePhenomenon>
>   </om:observedProperty>
>    
>   <om:featureOfInterest>
>    <gml:FeatureCollection>
>     <gml:featureMember>
>      <sa:SamplingPoint gml:id="AllTypesFoi">
>       <gml:name>AllTypesFoi</gml:name>
>       <sa:sampledFeature xlink:href=""/>
>       <sa:position>
>        <gml:Point>
>         <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">52.9 7.52</gml:pos>
>        </gml:Point>
>       </sa:position>
>      </sa:SamplingPoint>
>     </gml:featureMember>
>    </gml:FeatureCollection>
>   </om:featureOfInterest>
>    
>   <om:result>
>    <swe:DataArray>
>      
>     <swe:elementCount>
>      <swe:Count>
>       <swe:value>5</swe:value>
>      </swe:Count>
>     </swe:elementCount>
>        
>     <swe:elementType name="Components">
>      <swe:DataRecord>
>       <swe:field name="Time">
>        <swe:Time
> definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
>       </swe:field>
>       <swe:field name="temperature">
>        <swe:Quantity
> definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature">
>         <swe:uom code="C" />
>        </swe:Quantity>
>       </swe:field>
>      </swe:DataRecord>
>     </swe:elementType>
>        
>     <swe:encoding>
>      <swe:TextBlock decimalSeparator="." tokenSeparator=","
> blockSeparator=";" />
>     </swe:encoding>
>        
>     <swe:values>
>     2012-03-09T06:00:00+02:00,6;
>     2012-03-09T07:00:00+02:00,7;
>     2012-03-09T08:00:00+02:00,8;
>     2012-03-09T09:00:00+02:00,9;
>     2012-03-09T10:00:00+02:00,10;
>     2012-03-09T10:00:00+02:00,11;
>     </swe:values>
>        
>    </swe:DataArray>
>   </om:result>
>  </om:Observation>
>     </sos:InsertObservation>
>   </env:Body>
> </env:Envelope>


--
Daniel Nüst
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: Inserting multiple observations

umut
This post was updated on .
Hi, thanks for quick reply,

I get an exception saying featureOfInterest is not specified but I actually have defined the foi in the xml.

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://schemas.opengis.net/ows/1.1.0/owsAll.xsd" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ows:Exception exceptionCode="InvalidParameterValue">
    <ows:ExceptionText>FeatureOfInterest is not specified.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

This is the exception message when I send the following XML which is slightly different from the first one



<InsertObservation xmlns="http://www.opengis.net/sos/1.0"
                   xmlns:om="http://www.opengis.net/om/1.0" xmlns: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://schemas.opengis.net/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"
                   service="SOS" version="1.0.0">

        <sos:AssignedSensorId>MySensor1</sos:AssignedSensorId>

        <om:Observation>

                <om:samplingTime>
                        <gml:TimePeriod xsi:type="gml:TimePeriodType">
                                <gml:beginPosition>2012-03-09T06:00:00+02:00</gml:beginPosition>
                                <gml:endPosition>2012-03-09T11:00:00+02:00</gml:endPosition>
                        </gml:TimePeriod>
                </om:samplingTime>

                <om:procedure xlink:href="MySensor1"/>

                <om:observedProperty>
                        <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
                                <gml:name>resultComponents</gml:name>
                                <swe:component xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
                                <swe:component xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>
                        </swe:CompositePhenomenon>
                </om:observedProperty>

                <om:featureOfInterest xlink:href="urn:ogc:def:feature:OGC-SWE:3:transient">
                        <sa:SamplingPoint gml:id="foi_1001">
                                <gml:name>SamplingPoint 1</gml:name>
                                <sa:sampledFeature xlink:href=""/>
                                <sa:position>
                                        <gml:Point>
                                                <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">52.90 7.52</gml:pos>
                                        </gml:Point>
                                </sa:position>
                        </sa:SamplingPoint>
                </om:featureOfInterest>

                <om:result>
                        <swe:DataArray>

                                <swe:elementCount>
                                        <swe:Count>
                                                <swe:value>6</swe:value>
                                        </swe:Count>
                                </swe:elementCount>

                                <swe:elementType name="Components">
                                        <swe:DataRecord>
                                                <swe:field name="Time">
                                                        <swe:Time definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
                                                </swe:field>
                                                <swe:field name="temperature">
                                                        <swe:Quantity definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature">
                                                                <swe:uom code="C"/>
                                                        </swe:Quantity>
                                                </swe:field>
                                        </swe:DataRecord>
                                </swe:elementType>

                                <swe:encoding>
                                        <swe:TextBlock decimalSeparator="." tokenSeparator="," blockSeparator=";"/>
                                </swe:encoding>

                                <swe:values>
                                        2012-03-09T06:00:00+02:00,6;
                                        2012-03-09T07:00:00+02:00,7;
                                        2012-03-09T08:00:00+02:00,8;
                                        2012-03-09T09:00:00+02:00,9;
                                        2012-03-09T10:00:00+02:00,10;
                                        2012-03-09T10:00:00+02:00,11;
                                </swe:values>

                        </swe:DataArray>
                </om:result>
        </om:Observation>
</InsertObservation>
Reply | Threaded
Open this post in threaded view
|

Re: Inserting multiple observations

Daniel Nüst - 52N
My suggestion from the last email still stands: Include the feature of
interest as a field in the DataArray, i.e. create a field in
swe:DataRecord and put the foi ID in the swe:values element.

Hth,
Daniel

Am 09.03.2012 12:38, schrieb umut:

> <?xml version="1.0" encoding="UTF-8"?>
> <ows:ExceptionReport version="1.0.0"
> xsi:schemaLocation="http://schemas.opengis.net/ows/1.1.0/owsAll.xsd"
> xmlns:ows="http://www.opengis.net/ows/1.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <ows:Exception exceptionCode="InvalidParameterValue">
>     <ows:ExceptionText>FeatureOfInterest is not
> specified.</ows:ExceptionText>
>   </ows:Exception>
> </ows:ExceptionReport>
>
> This is the exception message when I send the following XML which is
> slightly different from the first one
>
>
>
> <InsertObservation xmlns="http://www.opengis.net/sos/1.0"
>                    xmlns:om="http://www.opengis.net/om/1.0"
> xmlns: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://schemas.opengis.net/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"
>                    service="SOS" version="1.0.0">
>
> <sos:AssignedSensorId>MySensor1</sos:AssignedSensorId>
>
> <om:Observation>
>
> <om:samplingTime>
> <gml:TimePeriod xsi:type="gml:TimePeriodType">
> <gml:beginPosition>2012-03-09T06:00:00+02:00</gml:beginPosition>
> <gml:endPosition>2012-03-09T11:00:00+02:00</gml:endPosition>
> </gml:TimePeriod>
> </om:samplingTime>
>
> <om:procedure xlink:href="MySensor1"/>
>
> <om:observedProperty>
> <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
> <gml:name>resultComponents</gml:name>
> <swe:component
> xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
> <swe:component
> xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>
> </swe:CompositePhenomenon>
> </om:observedProperty>
>
> <om:featureOfInterest
> xlink:href="urn:ogc:def:feature:OGC-SWE:3:transient">
> <sa:SamplingPoint gml:id="foi_1001">
> <gml:name>SamplingPoint 1</gml:name>
> <sa:sampledFeature xlink:href=""/>
> <sa:position>
> <gml:Point>
> <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">52.90 7.52</gml:pos>
> </gml:Point>
> </sa:position>
> </sa:SamplingPoint>
> </om:featureOfInterest>
>
> <om:result>
> <swe:DataArray>
>
> <swe:elementCount>
> <swe:Count>
> <swe:value>6</swe:value>
> </swe:Count>
> </swe:elementCount>
>
> <swe:elementType name="Components">
> <swe:DataRecord>
> <swe:field name="Time">
> <swe:Time
> definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
> </swe:field>
> <swe:field name="temperature">
> <swe:Quantity
> definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature">
> <swe:uom code="C"/>
> </swe:Quantity>
> </swe:field>
> </swe:DataRecord>
> </swe:elementType>
>
> <swe:encoding>
> <swe:TextBlock decimalSeparator="." tokenSeparator=","
> blockSeparator=";"/>
> </swe:encoding>
>
> <swe:values>
> 2012-03-09T06:00:00+02:00,6;
> 2012-03-09T07:00:00+02:00,7;
> 2012-03-09T08:00:00+02:00,8;
> 2012-03-09T09:00:00+02:00,9;
> 2012-03-09T10:00:00+02:00,10;
> 2012-03-09T10:00:00+02:00,11;
> </swe:values>
>
> </swe:DataArray>
> </om:result>
> </om:Observation>
> </InsertObservation>
>
> --
> View this message in context: http://sensorweb.forum.52north.org/Inserting-multiple-observations-tp3812217p3812438.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org


--
Daniel Nüst
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

[SOLVED] Inserting multiple observations

umut
This post was updated on .
Hi again,
Yep you were right  the following xml worked for multiple observation with single foi, single procedure

Adding feature field under data record sorted out the problem,



... <swe:elementType name="Components">
                                        <swe:DataRecord>
                                                ...
                                                        <swe:field name="feature">
                                                                <swe:Text definition="http://www.opengis.net/def/property/OGC/0/FeatureOfInterest" />
                                                        </swe:field>

                                                ...
                                        </swe:DataRecord>
                                </swe:elementType>
                                ...
                                <swe:values>
                                        2012-03-09T07:30:15+02:00,foi_1001,6;
                                        ...
                                </swe:values>
                                ...



I also added feature of interest(in my case foi_1001) name for each observation value under swe:values respectively.




here is the full xml


<InsertObservation xmlns="http://www.opengis.net/sos/1.0"
                   xmlns:om="http://www.opengis.net/om/1.0" xmlns: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://schemas.opengis.net/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"
                   service="SOS" version="1.0.0">

        <sos:AssignedSensorId>MySensor1</sos:AssignedSensorId>

        <om:Observation>

                <om:samplingTime>
                        <gml:TimePeriod xsi:type="gml:TimePeriodType">
                                <gml:beginPosition>2012-03-09T06:00:00+02:00</gml:beginPosition>
                                <gml:endPosition>2012-03-09T11:00:00+02:00</gml:endPosition>
                        </gml:TimePeriod>
                </om:samplingTime>

                <om:procedure xlink:href="MySensor1"/>

                <om:observedProperty>
                        <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
                                <gml:name>resultComponents</gml:name>
                                <swe:component xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
                                <swe:component xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>
                        </swe:CompositePhenomenon>
                </om:observedProperty>
               
                <om:featureOfInterest>
                        <gml:FeatureCollection>
                                <gml:featureMember>
                                        <sa:SamplingPoint gml:id="foi_1001">
                                        <gml:name>SamplingPoint 1</gml:name>
                                        <sa:sampledFeature xlink:href=""/>
                                                <sa:position>
                                                        <gml:Point>
                                                                <gml:pos srsName="urn:ogc:def:crs:EPSG::4326">32.853335 39.930439</gml:pos>
                                                        </gml:Point>
                                                </sa:position>
                                        </sa:SamplingPoint>
                                </gml:featureMember>
                        </gml:FeatureCollection>
                </om:featureOfInterest>
 

                <om:result>
                        <swe:DataArray>

                                <swe:elementCount>
                                        <swe:Count>
                                                <swe:value>6</swe:value>
                                        </swe:Count>
                                </swe:elementCount>

                                <swe:elementType name="Components">
                                        <swe:DataRecord>
                                                <swe:field name="Time">
                                                        <swe:Time definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
                                                </swe:field>
                                                        <swe:field name="feature">
                                                                <swe:Text definition="http://www.opengis.net/def/property/OGC/0/FeatureOfInterest" />
                                                        </swe:field>
                                                <swe:field name="temperature">
                                                        <swe:Quantity definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature">
                                                                <swe:uom code="C"/>
                                                        </swe:Quantity>
                                                </swe:field>
                                        </swe:DataRecord>
                                </swe:elementType>

                                <swe:encoding>
                                        <swe:TextBlock decimalSeparator="." tokenSeparator="," blockSeparator=";"/>
                                </swe:encoding>

                                <swe:values>
                                        2012-03-09T07:30:15+02:00,foi_1001,6;
                                        2012-03-09T08:30:15+02:00,foi_1001,7;
                                        2012-03-09T09:90:15+02:00,foi_1001,8;
                                        2012-03-09T10:30:15+02:00,foi_1001,9;
                                        2012-03-09T11:30:15+02:00,foi_1001,10;
                                        2012-03-09T12:30:15+02:00,foi_1001,11;
                                </swe:values>

                        </swe:DataArray>
                </om:result>
        </om:Observation>
</InsertObservation>
Reply | Threaded
Open this post in threaded view
|

Re: [SOLVED] Inserting multiple observations

and.vianello
Hi all,
your example is very usefull to me.
I have another question: is it possible to add in each data row a field for "phenomen time" and "result time"?

Do you have an example?
Thnak you very much
Andrea
Reply | Threaded
Open this post in threaded view
|

Re: [SOLVED] Inserting multiple observations

Carsten Hollmann
Hi Andrea,

> I have another question: is it possible to add in each data row a field for
> "phenomen time" and "result time"?

Do you mean in the InsertResultTemplate/InsertResult operation?

The SOS test client provides examples for the InsertResult and
InsertResultTemplate operations with resultTime.

Best,
Carsten

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines