Hi,
If the foreign key column is not suitable for grouping with CQL_FILTER you can alternatively make views in PostGIS and publish them as separate WMS layers.
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: Kris Geusebroek [mailto:kgeusebroek@anonymised.com]
Lähetetty: to 2.4.2009 10:30
Vastaanottaja: Ian Mayo; geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Ability to filter datastore by attributeprior toserving as WMS
Hi Ian,
You can supply a filter in the request.
CQL_FILTER has the simplest syntax.
Could be something like this:
http://localhost:8080/geoserver/wms/request=getMap&........&CQL_FILTER=COLUMNNAME = VALUE
Let me know if you need more help then this fast short answer.
Cheers Kris
-----Original Message-----
From: Ian Mayo [mailto:ianmayo@anonymised.com]
Sent: Thursday, April 02, 2009 9:23 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Ability to filter datastore by attribute prior toserving as WMS
Hi all.
I'm in the process of getting up to speed in GeoServer.
I've got a PostGis database with a very long spatially enabled table.
Entries in this table are grouped according to an single field (a
foreign key).
From the GeoServer tutorial it just appears possible
to include this whole table as a single dataset - but that would
contain all of my data. I just want to plot one group at a time, and don't
wish to store each 'group' of data in its own table.
Am I missing something, is it possible for a WMS client to request
a filtered version of this table (filtered according to my foreign
key)?
cheers,
Ian
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users