Get last 10 observations

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

Get last 10 observations

Raffaella
Hi,
Someone can help me to create a request to obtain the last ten observations of my phenomenon?
I don't wont to use a static date for beginPosition and endPosition but the last temporal window containing ten samples.
Thanks in advance
Raffaella
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Stasch, Christoph
Dear Raffaella,

unfortunately, such a query is not possible at the moment and is not supported by the SOS spec.

Cheers,

Christoph

> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Raffaella
> Gesendet: Donnerstag, 26. August 2010 13:25
> An: [hidden email]
> Betreff: [52N SWE] Get last 10 observations
>
>
> Hi,
> Someone can help me to create a request to obtain the last ten observations
> of my phenomenon?
> I don't wont to use a static date for beginPosition and endPosition but the
> last temporal window containing ten samples.
> Thanks in advance
> Raffaella
> --
> View this message in context: http://sensorweb.forum.52north.org/Get-last-10-observations-
> tp1349759p1349759.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://www2.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Eike Hinderk Jürrens
 Hi there,
but what about considering such queries in the SOS 2.0 spec? Will they
be possible?

It seems to me, that such queries are important for client developments.

Kind regards,
Eike

Am 27.08.2010 09:49, schrieb Stasch, Christoph:

> Dear Raffaella,
>
> unfortunately, such a query is not possible at the moment and is not supported by the SOS spec.
>
> Cheers,
>
> Christoph
>
>> -----Ursprüngliche Nachricht-----
>> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Raffaella
>> Gesendet: Donnerstag, 26. August 2010 13:25
>> An: [hidden email]
>> Betreff: [52N SWE] Get last 10 observations
>>
>>
>> Hi,
>> Someone can help me to create a request to obtain the last ten observations
>> of my phenomenon?
>> I don't wont to use a static date for beginPosition and endPosition but the
>> last temporal window containing ten samples.
>> Thanks in advance
>> Raffaella
>> --
>> View this message in context: http://sensorweb.forum.52north.org/Get-last-10-observations-
>> tp1349759p1349759.html
>> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.

_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Stasch, Christoph
Hi Eike,

it has been discussed in the SOS specification working group at OGC extensively, but has been considered as too complex to be contained in the core SOS 2.0 spec.

The SOS 2.0 will support an easy extension mechanism and AFAIK there are already people working on an Paging extension enabling such queries. I'd assume that the extension will be published once the SOS 2.0 has been published (probably by the beginning of next year).

Cheers,

Christoph

> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Eike Hinderk Jürrens
> Gesendet: Freitag, 27. August 2010 11:28
> An: [hidden email]
> Betreff: Re: [52N SWE] Get last 10 observations
>
>  Hi there,
> but what about considering such queries in the SOS 2.0 spec? Will they
> be possible?
>
> It seems to me, that such queries are important for client developments.
>
> Kind regards,
> Eike
>
> Am 27.08.2010 09:49, schrieb Stasch, Christoph:
> > Dear Raffaella,
> >
> > unfortunately, such a query is not possible at the moment and is not supported by the SOS spec.
> >
> > Cheers,
> >
> > Christoph
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Raffaella
> >> Gesendet: Donnerstag, 26. August 2010 13:25
> >> An: [hidden email]
> >> Betreff: [52N SWE] Get last 10 observations
> >>
> >>
> >> Hi,
> >> Someone can help me to create a request to obtain the last ten observations
> >> of my phenomenon?
> >> I don't wont to use a static date for beginPosition and endPosition but the
> >> last temporal window containing ten samples.
> >> Thanks in advance
> >> Raffaella
> >> --
> >> View this message in context: http://sensorweb.forum.52north.org/Get-last-10-observations-
> >> tp1349759p1349759.html
> >> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://www2.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Raffaella
Hello everybody,
thanks Christoph for your answer, but it is possible a request for observation in different kind of temporal-window at the moment or not?
i.e. specifying only the endPosition to obtain all the previous observations?

Kind regards,
Raffaella
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Stasch, Christoph
> i.e. specifying only the endPosition to obtain all the previous
> observations?

Try using the temporal operator ogc:TM_Before instead of ogc:TM_Equals in your request like:

<eventTime>
    <ogc:TM_Before>
      <ogc:PropertyName>om:samplingTime</ogc:PropertyName>
      <gml:TimePeriod>
        <gml:beginPosition>2008-04-02T13:44:15+00:00</gml:beginPosition>
        <gml:endPosition>2008-05-01T17:44:15+00:00</gml:endPosition>
      </gml:TimePeriod>
    </ogc:TM_Before>
  </eventTime>

Usually, you should also be able to replace the TimePeriod by a TimeInstant:

<eventTime>
    <ogc:TM_Before>
      <ogc:PropertyName>om:samplingTime</ogc:PropertyName>
      <gml:TimeInstant>
        <gml:timePosition>2008-04-01T17:44:15+02</gml:timePosition>
      </gml:TimeInstant>
    </ogc:TM_Before>
  </eventTime>

However, the filter then seems not to be applied to the observation query, so I've written a bug report and we'll fix that soon.

Cheers,

Christoph

> -----Ursprüngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Raffaella
> Gesendet: Freitag, 27. August 2010 13:37
> An: [hidden email]
> Betreff: Re: [52N SWE] Get last 10 observations
>
>
> Hello everybody,
> thanks Christoph for your answer, but it is possible a request for
> observation in different kind of temporal-window at the moment or not?
> i.e. specifying only the endPosition to obtain all the previous
> observations?
>
> Kind regards,
> Raffaella
>
> --
> View this message in context: http://sensorweb.forum.52north.org/Get-last-10-observations-
> tp1349759p1369192.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://www2.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Get last 10 observations

Raffaella
Ok Christoph,
I'll use the first solution.
Thank you
Raffaella