[52N SWE] SOS and GetLatestObservation

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

[52N SWE] SOS and GetLatestObservation

Francesco D'Amore
Hi All..

I try to get latest observatino with this request:

  <offering>air_temperature</offering>

  <eventTime>
    <ogc:TM_Equals>
      <ogc:PropertyName>om:samplingTime</ogc:PropertyName>
      <gml:TimeInstant>
        <gml:timePosition>latest</gml:timePosition>
      </gml:TimeInstant>
    </ogc:TM_Equals>
  </eventTime>

  <observedProperty>urn:ogc:def:phenomenon:OGC:1.0.30:air_temp</observedProperty>
  <responseFormat>text/xml;subtype=&quot;om/1.0.0&quot;</responseFormat>

</GetObservation>

And i receive this response:

<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="InvalidParameterValue" locator="srsName">
<ows:ExceptionText>
The epsgCode '4326' for parameter srsName'is not supported by the SOS
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

Any suggestion???? There is some think that can I do in order to set a
different srsName???

Thank you....

--
Ing. Francesco D'Amore
blog: www.marinajonica.org
linkedin: http://www.linkedin.com/in/francescodamore
Consiglio Nazionale delle Ricerche - Istituto di Inquinamento Atmosferico (IIA)
Ph. D. Student at University of Calabria - DEIS
_______________________________________________
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: [52N SWE] SOS and GetLatestObservation

Carsten Hollmann-3
Hi Francesco,

the parameter 'srsName' is part of the first <Observation> tag
(namespaces, version, service). In the most examples the parameter is
set to 'srsName="urn:ogc:def:crs:EPSG:4326"' but the parameter is not
mandatory.
So you can delete the parameter, then the default srsName is used (the
EPSG code of the feature of interest geometry).
Or you can change the parameter to a supported one.

Regards,
Carsten
-----

Carsten Hollmann

IfGI - Institute for Geoinformatics
University of Muenster

Mail: [hidden email]

Am 20.09.2010 12:57, schrieb Francesco D'Amore:

> Hi All..
>
> I try to get latest observatino with this request:
>
>    <offering>air_temperature</offering>
>
>    <eventTime>
>      <ogc:TM_Equals>
>        <ogc:PropertyName>om:samplingTime</ogc:PropertyName>
>        <gml:TimeInstant>
>          <gml:timePosition>latest</gml:timePosition>
>        </gml:TimeInstant>
>      </ogc:TM_Equals>
>    </eventTime>
>
>    <observedProperty>urn:ogc:def:phenomenon:OGC:1.0.30:air_temp</observedProperty>
>    <responseFormat>text/xml;subtype=&quot;om/1.0.0&quot;</responseFormat>
>
> </GetObservation>
>
> And i receive this response:
>
> <ows:ExceptionReport version="1.0.0"
> xsi:schemaLocation="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
> <ows:Exception exceptionCode="InvalidParameterValue" locator="srsName">
> <ows:ExceptionText>
> The epsgCode '4326' for parameter srsName'is not supported by the SOS
> </ows:ExceptionText>
> </ows:Exception>
> </ows:ExceptionReport>
>
> Any suggestion???? There is some think that can I do in order to set a
> different srsName???
>
> Thank you....
>
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org