52North SOS 4.3.7 - InsertSensor and DescribeSensor mismatch ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

52North SOS 4.3.7 - InsertSensor and DescribeSensor mismatch ?

CorentinK
Hello,

I am 52 north beginner and after installing the service I am testing the different operation with the example that the test client provide.

One thing I do not understand is that the sensor description that I insert using "InsertSensor" (see below) differs from the description that the operation "DescribeSensor" send me? The longName and  shortName change + nothing on featureOfInterest or position.

Can someone help me on that?

Corentin

InsertSensor request:

<?xml version="1.0" encoding="UTF-8"?>
<swes:InsertSensor
    xmlns:swes="http://www.opengis.net/swes/2.0"
    xmlns:sos="http://www.opengis.net/sos/2.0"
    xmlns:swe="http://www.opengis.net/swe/1.0.1"
    xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="SOS" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sosInsertSensor.xsd   http://www.opengis.net/swes/2.0 http://schemas.opengis.net/swes/2.0/swes.xsd">
    <swes:procedureDescriptionFormat>http://www.opengis.net/sensorML/1.0.1</swes:procedureDescriptionFormat>
    <swes:procedureDescription>
        <sml:SensorML version="1.0.1">
            <sml:member>
                <sml:System>
                   
                    <sml:identification>
                        <sml:IdentifierList>
                            <sml:identifier name="uniqueID">
                                <sml:Term definition="urn:ogc:def:identifier:OGC:1.0:uniqueID">
                                    <sml:value>http://www.52north.org/test/procedure/9</sml:value>
                                </sml:Term>
                            </sml:identifier>
                            <sml:identifier name="longName">
                                <sml:Term definition="urn:ogc:def:identifier:OGC:1.0:longName">
                                    <sml:value>52°North Initiative for Geospatial Open Source
                                                                                Software GmbH (http://52north.org)</sml:value>
                                </sml:Term>
                            </sml:identifier>
                            <sml:identifier name="shortName">
                                <sml:Term definition="urn:ogc:def:identifier:OGC:1.0:shortName">
                                    <sml:value>52°North GmbH</sml:value>
                                </sml:Term>
                            </sml:identifier>
                        </sml:IdentifierList>
                    </sml:identification>
                    <sml:capabilities name="offerings">
                       
                       
                       
                        <swe:SimpleDataRecord>
                           
                            <swe:field name="Offering for sensor 9">
                                <swe:Text definition="urn:ogc:def:identifier:OGC:offeringID">
                                    <gml:name>Offering for sensor 9</gml:name>
                                    <swe:value>http://www.52north.org/test/offering/9</swe:value>
                                </swe:Text>
                            </swe:field>
                        </swe:SimpleDataRecord>
                    </sml:capabilities>
                    <sml:capabilities name="parentProcedures">
                       
                       
                        <swe:SimpleDataRecord>
                            <swe:field name="parentProcedure">
                                <swe:Text>
                                    <swe:value>http://www.52north.org/test/procedure/1</swe:value>
                                </swe:Text>
                            </swe:field>
                        </swe:SimpleDataRecord>
                    </sml:capabilities>
                    <sml:capabilities name="featuresOfInterest">
                       
                       
                        <swe:SimpleDataRecord>
                            <swe:field name="featureOfInterestID">
                                <swe:Text>
                                    <swe:value>http://www.52north.org/test/featureOfInterest/9
                                                                        </swe:value>
                                </swe:Text>
                            </swe:field>
                        </swe:SimpleDataRecord>
                    </sml:capabilities>
                    <sml:position name="sensorPosition">
                        <swe:Position referenceFrame="urn:ogc:def:crs:EPSG::4326">
                            <swe:location>
                                <swe:Vector gml:id="STATION_LOCATION">
                                    <swe:coordinate name="easting">
                                        <swe:Quantity axisID="x">
                                            <swe:uom code="degree"/>
                                            <swe:value>7.651968812254194</swe:value>
                                        </swe:Quantity>
                                    </swe:coordinate>
                                    <swe:coordinate name="northing">
                                        <swe:Quantity axisID="y">
                                            <swe:uom code="degree"/>
                                            <swe:value>51.935101100104916</swe:value>
                                        </swe:Quantity>
                                    </swe:coordinate>
                                    <swe:coordinate name="altitude">
                                        <swe:Quantity axisID="z">
                                            <swe:uom code="m"/>
                                            <swe:value>52.0</swe:value>
                                        </swe:Quantity>
                                    </swe:coordinate>
                                </swe:Vector>
                            </swe:location>
                        </swe:Position>
                    </sml:position>
                    <sml:inputs>
                        <sml:InputList>
                            <sml:input name="test_observable_property_9">
                                <swe:ObservableProperty definition="http://www.52north.org/test/observableProperty/9"/>
                            </sml:input>
                        </sml:InputList>
                    </sml:inputs>
                    <sml:outputs>
                        <sml:OutputList>
                            <sml:output name="test_observable_property_9_1">
                                <swe:Category definition="http://www.52north.org/test/observableProperty/9_1">
                                    <swe:codeSpace xlink:href="NOT_DEFINED"/>
                                </swe:Category>
                            </sml:output>
                            <sml:output name="test_observable_property_9_2">
                                <swe:Count definition="http://www.52north.org/test/observableProperty/9_2"/>
                            </sml:output>
                            <sml:output name="test_observable_property_9_3">
                                <swe:Quantity definition="http://www.52north.org/test/observableProperty/9_3">
                                    <swe:uom code="NOT_DEFINED"/>
                                </swe:Quantity>
                            </sml:output>
                            <sml:output name="test_observable_property_9_4">
                                <swe:Text definition="http://www.52north.org/test/observableProperty/9_4"/>
                            </sml:output>
                            <sml:output name="test_observable_property_9_5">
                                <swe:Boolean definition="http://www.52north.org/test/observableProperty/9_5"/>
                            </sml:output>
                            <sml:output name="test_observable_property_9_7">
                                <swe:DataArray>
                                    <swe:elementCount>
                                        <swe:Count/>
                                    </swe:elementCount>
                                    <swe:elementType name="defs">
                                        <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="test_observable_property_6">
                                                <swe:Quantity definition="http://www.52north.org/test/observableProperty/6">
                                                    <swe:uom code="test_unit_6"/>
                                                </swe:Quantity>
                                            </swe:field>
                                        </swe:DataRecord>
                                    </swe:elementType>
                                </swe:DataArray>
                            </sml:output>
                        </sml:OutputList>
                    </sml:outputs>
                </sml:System>
            </sml:member>
        </sml:SensorML>
    </swes:procedureDescription>
   
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_1</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_2</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_3</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_4</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_5</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_6</swes:observableProperty>
    <swes:observableProperty>http://www.52north.org/test/observableProperty/9_7</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>
</swes:InsertSensor>


describeSensor response:

<?xml version="1.0" encoding="UTF-8"?>
<swes:DescribeSensorResponse xmlns:swes="http://www.opengis.net/swes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sml="http://www.opengis.net/sensorml/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:swe="http://www.opengis.net/swe/2.0" xsi:schemaLocation="http://www.opengis.net/swes/2.0 http://schemas.opengis.net/swes/2.0/swesDescribeSensor.xsd http://www.opengis.net/sensorml/2.0 http://schemas.opengis.net/sensorML/2.0/sensorML.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd">
  <swes:procedureDescriptionFormat>http://www.opengis.net/sensorml/2.0</swes:procedureDescriptionFormat>
  <swes:description>
    <swes:SensorDescription>
      <swes:data>
        <sml:SimpleProcess gml:id="sp_EB7C2526092A1E4DAEA9D240247AA92D08D5C7AB">
          <gml:identifier codeSpace="uniqueID">http://www.52north.org/test/procedure/9</gml:identifier>
          <sml:keywords>
            <sml:KeywordList>
              <sml:keyword>http://www.52north.org/test/offering/9</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_1</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_2</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_3</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_4</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_5</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_6</sml:keyword>
              <sml:keyword>http://www.52north.org/test/observableProperty/9_7</sml:keyword>
              <sml:keyword>http://www.52north.org/test/procedure/9</sml:keyword>
            </sml:KeywordList>
          </sml:keywords>
          <sml:identification>
            <sml:IdentifierList>
              <sml:identifier>
                <sml:Term definition="urn:ogc:def:identifier:OGC:uniqueID">
                  <sml:label>uniqueID</sml:label>
                  <sml:value>http://www.52north.org/test/procedure/9</sml:value>
                </sml:Term>
              </sml:identifier>
              <sml:identifier>
                <sml:Term definition="urn:ogc:def:identifier:OGC:1.0:shortname">
                  <sml:label>shortName</sml:label>
                  <sml:value>http://www.52north.org/test/procedure/9</sml:value>
                </sml:Term>
              </sml:identifier>
              <sml:identifier>
                <sml:Term definition="urn:ogc:def:identifier:OGC:1.0:longname">
                  <sml:label>longName</sml:label>
                  <sml:value>http://www.52north.org/test/procedure/9</sml:value>
                </sml:Term>
              </sml:identifier>
            </sml:IdentifierList>
          </sml:identification>
          <sml:capabilities name="offerings">
            <sml:CapabilityList>
              <sml:capability name="offeringID">
                <swe:Text definition="http://www.opengis.net/def/offering/identifier">
                  <swe:label>offeringID</swe:label>
                  <swe:value>http://www.52north.org/test/offering/9</swe:value>
                </swe:Text>
              </sml:capability>
            </sml:CapabilityList>
          </sml:capabilities>
          <sml:inputs>
            <sml:InputList>
              <sml:input name="input_1">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_1"/>
              </sml:input>
              <sml:input name="input_2">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_2"/>
              </sml:input>
              <sml:input name="input_3">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_3"/>
              </sml:input>
              <sml:input name="input_4">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_4"/>
              </sml:input>
              <sml:input name="input_5">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_5"/>
              </sml:input>
              <sml:input name="input_6">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_6"/>
              </sml:input>
              <sml:input name="input_7">
                <swe:Text definition="http://www.52north.org/test/observableProperty/9_7"/>
              </sml:input>
            </sml:InputList>
          </sml:inputs>
        </sml:SimpleProcess>
      </swes:data>
    </swes:SensorDescription>
  </swes:description>
</swes:DescribeSensorResponse>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 52North SOS 4.3.7 - InsertSensor and DescribeSensor mismatch ?

Carsten Hollmann
Hi Corentin,

I have checked the behaviour you have described.
After the Installation of the SOS 4.3.7 I executed your InsertSensor
request but when I send a DescribeSensor request the result contains the
same long and short name as well as the featureOfInterest.

Then I have installed the SOS without "Transactional Profile" and then
the DescribeSensor result was similar to yours.

Therefore, the question of whether you have the SOS re-installed without
the "Transactional Profile" afterwards?

Because without the "Transactional Profile" the SOS generates the
procedure description from the data in the database.
With "Transactional Profile" the SOS stores the inserted XML description
in the database and uses this for the response.

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
|  
Report Content as Inappropriate

Re: 52North SOS 4.3.7 - InsertSensor and DescribeSensor mismatch ?

CorentinK
Hi Carsten,

At the end I moved on a new version (SOS 4.3.14) and everything seems to work perfectly.

Thank you very much for your help and this forum that I think is really useful. I am a beginner so you will probably hear from me in the future on other issues ;-)

Best,

Corentin
Loading...