Thanks for the reply.

We use GeoServer 2.0.2 at the moment, but we have the option to upgrade to 2.1. 
We will try to go by that route.

Kind regards
Thomas Jahnsen

Developer
NORDECA AS
Tel: + 47 93 02 67 38
E-mail: [email protected]

NORDECA AS, Strandveien 13, Pb. 58, 1324 Lysaker
Tel: +47 67 59 28 10, fax: +47 67 59 28 11, email: [email protected], 
internet: www.nordeca.com


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: 14 April 2011 14:50
To: Thomas Jahnsen
Cc: [email protected]
Subject: Re: [Geoserver-users] WMS filter exclude ID

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