hi,
i've a question/problem related to using filters in the geoserver-wfs.
i'm trying to use the the "OR" filter to request the objects, where the attribute "link" has the numbers "3" or "5".
so i'm using the following request:
//localhost:8084/geoserver/wfs/GetFeature?typeName=buildings100k&filter=<Filter><OR><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>5</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>3</Literal></PropertyIsEqualTo></OR></Filter>
but the result dataset contains only the objects with "link=3". Changing the order (first ... <Literal>3</Literal>... then ...<Literal>5</Literal> ...) results in all the objects with "link=5", but not both.
the same problem is with the "AND" filter.
are these filters not implemented yet? i'm using geoserver 1.2.3 with postgis 0.8 .
thanks in advance for some answers or hints,
mark hampe
Mark,
I could you tell us which datastore (data format) you are using to
provide the information? This may be a bug in some geotools code, so I
included them on the reply.
David
On Mon, 2004-12-13 at 09:06, Hampe, Mark wrote:
hi,
i've a question/problem related to using filters in the geoserver-wfs.
i'm trying to use the the "OR" filter to request the objects, where the attribute "link" has the numbers "3" or "5".
so i'm using the following request:
//localhost:8084/geoserver/wfs/GetFeature?typeName=buildings100k&filter=<Filter><OR><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>5</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>3</Literal></PropertyIsEqualTo></OR></Filter>
but the result dataset contains only the objects with "link=3". Changing the order (first ... <Literal>3</Literal>... then ...<Literal>5</Literal> ...) results in all the objects with "link=5", but not both.
the same problem is with the "AND" filter.
are these filters not implemented yet? i'm using geoserver 1.2.3 with postgis 0.8 .
thanks in advance for some answers or hints,
mark hampe
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
AND and OR filters are definitely implemented. Have you tried doing the
same with a POST request? You can use the
http://localhost:8084/geoserver/demo.do to issue it. That may shed light
if the kvp reader is messing up the filter. The other thing that we need
is the logs. Set to FINER is probably appropriate. This will show if the
problem is in the filter parsing or the request to PostGIS.
Thanks,
Chris
On Mon, 13 Dec 2004, Hampe, Mark wrote:
hi,
i've a question/problem related to using filters in the geoserver-wfs.
i'm trying to use the the "OR" filter to request the objects, where the attribute "link" has the numbers "3" or "5".
so i'm using the following request:
//localhost:8084/geoserver/wfs/GetFeature?typeName=buildings100k&filter=<Filter><OR><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>5</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>link</PropertyName><Literal>3</Literal></PropertyIsEqualTo></OR></Filter>
but the result dataset contains only the objects with "link=3". Changing the order (first ... <Literal>3</Literal>... then ...<Literal>5</Literal> ...) results in all the objects with "link=5", but not both.
the same problem is with the "AND" filter.
are these filters not implemented yet? i'm using geoserver 1.2.3 with postgis 0.8 .
thanks in advance for some answers or hints,
mark hampe
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Hi,
The filters (actually all requests) are case sensitive: according to the
specs, you should use Or in stead of OR, and And in stead of AND. I've
noticed that filters are ignored or don't work correctly when they are not
properly typed/spelled.
This should help you out.
regards,
Thijs
-----Original Message-----
From: Chris Holmes <cholmes@anonymised.com>
To: "Hampe, Mark" <Mark.Hampe@anonymised.com>
Cc: geoserver-devel@lists.sourceforge.net
Date: Mon, 13 Dec 2004 21:25:56 -0500 (EST)
Subject: Re: [Geoserver-devel] wfs-filter OR/AND
AND and OR filters are definitely implemented. Have you tried doing
the
same with a POST request? You can use the
http://localhost:8084/geoserver/demo.do to issue it. That may shed
light
if the kvp reader is messing up the filter. The other thing that we
need
is the logs. Set to FINER is probably appropriate. This will show if
the
problem is in the filter parsing or the request to PostGIS.
Thanks,
Chris
On Mon, 13 Dec 2004, Hampe, Mark wrote:
> hi,
>
> i've a question/problem related to using filters in the
geoserver-wfs.
> i'm trying to use the the "OR" filter to request the objects, where
the attribute "link" has the numbers "3" or "5".
> so i'm using the following request:
>
>
//localhost:8084/geoserver/wfs/GetFeature?typeName=buildings100k&filter
=<Filter><OR><PropertyIsEqualTo><PropertyName>link</PropertyName><Liter
al>5</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>link
</PropertyName><Literal>3</Literal></PropertyIsEqualTo></OR></Filter>
>
> but the result dataset contains only the objects with "link=3".
Changing the order (first ... <Literal>3</Literal>... then
...<Literal>5</Literal> ...) results in all the objects with "link=5",
but not both.
> the same problem is with the "AND" filter.
> are these filters not implemented yet? i'm using geoserver 1.2.3 with
postgis 0.8 .
>
>
> thanks in advance for some answers or hints,
>
> mark hampe
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
--
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real
users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel