On Thu, Apr 14, 2011 at 1:06 PM, Thomas Jahnsen
<[email protected]> wrote:
> Hi
>
> We need to get a WMS from a layer with "all-but-one" feature - the
> equivalent of the SQL "ID NOT IN (-number-)".
>
> I know ECQL supports "NOT IN (-number-)", but can I use that through
> GeoServer's WMS service? How can I describe it in normal CQL or OGC
> filter?

GeoServer 2.1 uses ECQL every time you provide CQL_FILTER, which
is a param in the wms request (a vendor one).
GeoServer 2.0.x does not, if you have to do it there and use a database
I suggest you enable "expose primary keys" (assuming it's available
in 2.0.3, I don't remember) and then query the pk as a normal attribute

Hope this helps

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 333 8128928

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

-------------------------------------------------------

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to