SOS trace GPS sensor

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

SOS trace GPS sensor

Blabla
Hi,
I have never use north52 before and I have some difficulties to do what I want.

I make an app (Android), we can make a trace from GPS, and when we stop record, data (latlng of linestring and date) should be send with a SOS to a database. I use SOS version 2.0
I know that I must build a sensor with InsertSensor then InsertResultTemplate and InsertResult; but I don't know which input and output to put in sensor. I tried a dataarray and a geometrytype but don't work. I need result = date lat lng.

How to do this? Someone could give me a simple example please. (I have already read wiki on 52north and didn't help me)

Thanks, best regards.

Reply | Threaded
Open this post in threaded view
|

Re: SOS trace GPS sensor

Carsten Hollmann
Hi,

the insertion of SWE-DataArray and geometries is not yet supported for
the InsertResultTemplate/InsertResult operations in the 52N-SOS.

Which 52N-SOS version do you use?

With the 52N-SOS version 4.x you can insert the result via
InsertObservation and OM_GeometryObservation (InsertObservation -
Geometry (SOS 2.0.0) in the SOS Test Client).

The current development line (52N-SOS 4.4.x,
https://github.com/52North/SOS/tree/develop) also supports
OM_ComplexObservation for InsertObservation and
InsertResultTemplate/InsertResult.

In that case the sos:resultStructure of the InsertResultTemplate might
look like this:

<swe:DataRecord>
   <swe:field name="phenomenonTime">
     <swe:Time
definition="http://www.opengis.net/def/property/OGC/0/PhenomenonTime">
       <swe:uom
xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"/>
     </swe:Time>
   </swe:field>
   <swe:field name="position">
     <!-- definition of the DataRecord should be the same as the
om:observedProperty! -->
     <swe:DataRecord definition="position">
       <swe:field name="lat">
         <swe:Quantity definition="latitude">
           <swe:uom code="degree"/>
         </swe:Quantity>
       </swe:field>
       <swe:field name="lng">
         <swe:Quantity definition="longitude">
           <swe:uom code="degree"/>
         </swe:Quantity>
       </swe:field>
     </swe:DataRecord>
   </swe:field>
</swe:DataRecord>

How to build a 52N-SOS from sources is described in the wiki:

https://wiki.52north.org/SensorWeb/SensorObservationServiceIVDocumentation#B1_41_Building_from_Source

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
Reply | Threaded
Open this post in threaded view
|

Re: SOS trace GPS sensor

Blabla
Hi,

I use version 4.3.7
But I tried InsertObservation Geometries in SOS Test Client and that won't work :
<ows:ExceptionText>The requested result type is not supported by this service!</ows:ExceptionText>
Plus I am little lost; why there are no output http://www.52north.org/test/observableProperty/9_6 in the InsertSensor (always in SOS Test Client)

Tanks for answers ;)

Reply | Threaded
Open this post in threaded view
|

Re: SOS trace GPS sensor

Carsten Hollmann
Hi,

> I use version 4.3.7
> But I tried InsertObservation Geometries in SOS Test Client and that won't
> work :
> <ows:ExceptionText>The requested result type is not supported by this
> service!</ows:ExceptionText>

I will check this and it would be great if you could create a GitHub
issue for this:

https://github.com/52North/SOS/issues

> Plus I am little lost; why there are no output
> http://www.52north.org/test/observableProperty/9_6 in the InsertSensor
> (always in SOS Test Client)

The http://www.52north.org/test/observableProperty/9_6 (the
observedProperty for the OM_GeometryObservation example) because there
is no quite suitable simple element/type in SWE Common to describe a GML
Point or Geometry.

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
Reply | Threaded
Open this post in threaded view
|

Re: SOS trace GPS sensor

Blabla
Hi,

Carsten Hollmann wrote
I will check this and it would be great if you could create a GitHub
issue for this:

https://github.com/52North/SOS/issues
Done.

Carsten Hollmann wrote
The http://www.52north.org/test/observableProperty/9_6 (the
observedProperty for the OM_GeometryObservation example) because there
is no quite suitable simple element/type in SWE Common to describe a GML
Point or Geometry.
So if I do this InsertSensor et InsertObservation, it's correct?

(InsertSensor)
<swes:procedureDescription>
                <sml:PhysicalSystem gml:id="sensor9">
                    <gml:identifier codeSpace="uniqueID">http://mymy/test/procedure/3</gml:identifier>
                   
                    <sml:capabilities name="offerings">
                        <sml:CapabilityList>
                            <sml:capability name="offeringID">
                                <swe:Text definition="urn:ogc:def:identifier:OGC:offeringID">
                                    <swe:label>offeringID</swe:label>
                                    <swe:value>http://mymy/test/offering/3</swe:value>
                                </swe:Text>
                            </sml:capability>
                        </sml:CapabilityList>
                    </sml:capabilities>
                    <sml:featuresOfInterest>
                        <sml:FeatureList definition="http://www.opengis.net/def/featureOfInterest/identifier">
                            <swe:label>featuresOfInterest</swe:label>
                            <sml:feature xlink:href="http://mymy/test/featureOfInterest/3"/>
                        </sml:FeatureList>
                    </sml:featuresOfInterest>
                </sml:PhysicalSystem>
            </swes:procedureDescription>
 <swes:observableProperty>http://mymy/test/observableProperty/3_geo</swes:observableProperty>
            <swes:metadata>
                <sos:SosInsertionMetadata>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_CategoryObservation</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_CountObservation</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_TextObservation</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_TruthObservation</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_GeometryObservation</sos:observationType>
                    <sos:observationType>http://www.opengis.net/def/observationType/OGC-
OM/2.0/OM_SWEArrayObservation</sos:observationType>
                   
                    <sos:featureOfInterestType>http://www.opengis.net/def/samplingFeatureType/OGC-
OM/2.0/SF_SamplingPoint</sos:featureOfInterestType>
                </sos:SosInsertionMetadata>
            </swes:metadata>

(InsertObservation)
<sos:offering>http://mymy/test/offering/3</sos:offering>
            <sos:observation>
                <om:OM_Observation gml:id="o1">
                    <om:type xlink:href="http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_GeometryObservation"/>
                    <om:phenomenonTime>
                        <gml:TimePeriod gml:id="phenomenonTime">
                            <gml:beginPosition>2002-11-19T17:45:15.000+00:00</gml:beginPosition>
                            <gml:endPosition>2003-11-19T17:45:15.000+00:00</gml:endPosition>
                        </gml:TimePeriod>
                    </om:phenomenonTime>
                    <om:resultTime xlink:href="#phenomenonTime"/>
                    <om:procedure xlink:href="http://mymy/test/procedure/3"/>
                    <om:observedProperty xlink:href="http://mymy/test/observableProperty/3_geo"/>
                    <om:featureOfInterest>
                        <sams:SF_SpatialSamplingFeature gml:id="ssf_test_feature_3geo">
                            <gml:identifier codeSpace="">http://mymy/test/featureOfInterest/3</gml:identifier>
                            <gml:name>52°North</gml:name>
                            <sf:type xlink:href="http://www.opengis.net/def/samplingFeatureType/OGC-
OM/2.0/SF_SamplingPoint"/>
                            <sf:sampledFeature xlink:href="http://www.52north.org/test/featureOfInterest/1"/>
                            <sams:shape>
                                <gml:Point gml:id="test_feature_9">
                                    <gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">51.93510110016 7.6519612254</gml:pos>
                                </gml:Point>
                            </sams:shape>
                        </sams:SF_SpatialSamplingFeature>
                    </om:featureOfInterest>
                    <om:result xsi:type="gml:GeometryPropertyType">
                        <gml:Point gml:id="value">
                            <gml:pos srsName="http://www.opengis.net/def/crs/EPSG/0/4326">52.9 7.52</gml:pos>
                        </gml:Point>
                    </om:result>
                </om:OM_Observation>
            </sos:observation>

Best,