GetDataAvailability versus GetObservation: Difference in observedProperty title?

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

GetDataAvailability versus GetObservation: Difference in observedProperty title?

TSlawecki
Hello,

The developer for the catalog and discovery tool consuming some 52N SOS services noticed an apparent inconsistency in the titling of the observed property between GetDataAvailability and GetObservation. Specifically, the GetDataAvailability call

http://173.167.227.68:8080/52n-sos-webapp-437/service?service=SOS&version=2.0.0&request=GetDataAvailability&FeatureOfInterest=urn:x-epaiwpp:feature:oh-cty-cle:wrd:efrm34.8&observedProperty=urn:x-epaiwpp:observable:water_level

returns

<gda:observedProperty xlink:title="water_level" xlink:href="urn:x-epaiwpp:observable:water_level"/>

while the GetObservation call

http://173.167.227.68:8080/52n-sos-webapp-437/service?service=SOS&version=2.0.0&request=GetObservation&FeatureOfInterest=urn:x-epaiwpp:feature:oh-cty-cle:wrd:efrm34.8&observedProperty=urn:x-epaiwpp:observable:water_level

returns

<om:observedProperty xlink:title="Water Level" xlink:href="urn:x-epaiwpp:observable:water_level"/>

Earlier Carsten helped me to set the title for om:observedProperty in the sql field observableproperty.name. Is the title for gda:observedProperty supposed to be the same field, or is there a different field in the database that needs to be set manually or in the InsertSensor/InsertTemplate operations?

Thanks,

Tad

Reply | Threaded
Open this post in threaded view
|

Re: GetDataAvailability versus GetObservation: Difference in observedProperty title?

Carsten Hollmann
Hi Tad,

which 52N SOS version do you use?

In the current development version
(https://github.com/52North/SOS/tree/develop) this issue was fixed by
this commit

 
https://github.com/52North/SOS/commit/e7bc67b1935c260b0c7de54c8a7e0651316b29a2

In previous version the GetDataAvailability was processed in another way
and the "name" information was not queried from the database.

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: GetDataAvailability versus GetObservation: Difference in observedProperty title?

TSlawecki
Carsten,

Our network is using 4.3.6 and 4.3.7.

So, if I understand correctly, 4.3.9 should return the same title for either call (GetDataAvailability or GetObservation), while the earlier versions return observableproperty.name for GetObservation and observablepropery.getIdentifier() for GetDataAvailability. What was the "other way" GDA was assigning an identifier? I'd like to know in case there is *any* way of getting the two to match without updating to the dev version ...

Thanks,

Tad
Reply | Threaded
Open this post in threaded view
|

Re: GetDataAvailability versus GetObservation: Difference in observedProperty title?

TSlawecki
Clarifying after re-reading ...

 - 4.3.9 will return the database field observedproperty.name for both GDA and GO

 - For earlier versions, GO will return the database field observedproperty.name.

 - For earlier version, GDA will return the identifier property of the programmatic ObservedProperty object. ObservedProperty.identifier is not based on any database field.

Reply | Threaded
Open this post in threaded view
|

Re: GetDataAvailability versus GetObservation: Difference in observedProperty title?

Carsten Hollmann
Hi Tad

>  - For earlier version, GDA will return the identifier property of the
> programmatic ObservedProperty object. ObservedProperty.identifier is not
> based on any database field.

The xlink:href is the observedProperty.identifier and the xlink:title
was processed from the observedProperty.identifier by cutting the
identifier at the last occurrence of "/" or ":".

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