Hi all. I was thinking about a way to get a FeatureType (WMS or WFS but probably better WMS even if I don't think it makes any difference) via a Postgis function instead of a Postgis view. I mean, for example, let's say I need to view the data in a table for sessionID, simply for allowing different users for seeing different things. Another example would be to query the data for how they will be in a given time.
I noticed that WMS specifications provide a TIME parameter, and I think that would be good for querying the map at a given time, but what about querying some optional parameters, or calling a function providing parameters?
Thanks
Andrea Maschio
http://www.superandrew.it
Andrea Maschio ha scritto:
Hi all. I was thinking about a way to get a FeatureType (WMS or WFS but probably better WMS even if I don't think it makes any difference) via a Postgis function instead of a Postgis view. I mean, for example, let's say I need to view the data in a table for sessionID, simply for allowing different users for seeing different things. Another example would be to query the data for how they will be in a given time.
I noticed that WMS specifications provide a TIME parameter, and I think that would be good for querying the map at a given time, but what about querying some optional parameters, or calling a function providing parameters?
Unfortunately there is no support for neither of them:
* time is not supported
* functions as a feature type are not supported either
What you're looking for is WPS, that is, the ability to compute
a dataset given a source and a certain set of parameters.
Yet, for the examples you're making, you could just use a single
table and specify the time and session id as columns, and
use filters to gather only the data you want. We do support
filters both on wfs (by spec) and wms (as an extensions).
See:
http://docs.codehaus.org/display/GEOSDOC/WFS+vendor+parameters
http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters
Cheers
Andrea
Andrea Maschio ha scritto:
Hi all. I was thinking about a way to get a FeatureType (WMS or WFS but probably better WMS even if I don't think it makes any difference) via a Postgis function instead of a Postgis view.
Btw Andrea, can you keep user type questions on the users list?
Cheers
Andrea