On Fri, Feb 24, 2012 at 5:36 PM, o ... <t...@hotmail.com> wrote:

>
> Sorry to ask this again, but this time its a WFS question.
>
> Does Geoserver support a WFS time-based request of data in a Postgres
> database table ?
>
>
The question should be actually different. Does the WFS protocol have an
idea of "time/elevation"? The answer
is, no, it does not, at least not in the same way as WMS, you cannot just
add the same params to the
requests and hope they work.

I guess it would be a nice addition, but if we added it, it would be
GeoServer own vendor extension, not
part of the standard protocol.


> I've have tried a recent trunk version of Geoserver and found that it does
> indeed work for WMS requests like this:
>
>
> http://localhost:8080/geoserver/wms?VERSION=1.3&bbox=-75.0,40.0,-65.0,50.0&Format=image/png&request=GetMap&layers=test:act_speed&width=550&height=550&srs=EPSG:4326&TIME=1984-02-14T04:00:00Z/1984-02-14T05:00:00Z
>
> But when I try the same query in using WFS against the same data table in
> Postgres, I find that I get ALL the data back, not the data within the time
> period I requested.
>
>
> http://localhost:8080/geoserver/sample/ows?service=WFS&version=1.1.0&request=GetFeature&time=1984-02-14T04:00:00Z/1984-02-14T05:00:00Z&typeName=test:act_density&outputFormat=text/xml;%20subtype=gml/3.2
>
> (The data in my table spans time from 1984-02-14 to 1984-02-16 and I
> expected to get back just the data in the time-range,
> 1984-02-14T04:00:00Z/1984-02-14T05:00:00Z )
>
>
In WFS you can query whatever attribute using OGC filter (xml syntax,
official part of the protocol) or
CQL_FILTER (GeoServer own SQL-like extension to filter data).
To do filtering with cql and time see the following examples:

http://www.refractions.net:8080/confluence/display/EN/Common+Query+Language#CommonQueryLanguage-Time

That is, time does not get a special treatment, it's just yet another
attribute.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to