[Geoserver-users] spatial filters and geoserver

Hi,

I just started learning how to use ogc spatial filters. I intend using them with geoserver.
I noticed that geoserver expects a url encoded spatial filter. I like to understand how this is done.
Which part of the filter xml is url encoded ?

filter=%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CIntersects%3E%3CPropertyName%3Ethe

is it the xml tags <, /> or ( )

or better is there a tool that can take a filter xml and url encode it to the format that geoserver expects.

Also, how are multiple filters for multiple layers specified ?

Thanks,

Roman.



Roman Isitua ha scritto:

Hi,

I just started learning how to use ogc spatial filters. I intend using them with geoserver.
I noticed that geoserver expects a url encoded spatial filter. I like to understand how this is done.
Which part of the filter xml is url encoded ?

filter=%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CIntersects%3E%3CPropertyName%3Ethe

is it the xml tags <, /> or ( )

or better is there a tool that can take a filter xml and url encode it to the format that geoserver expects.

Also, how are multiple filters for multiple layers specified ?

GeoServer does not expect any particular format, url-encoding is just
the way any web request must be done against http servers:
http://en.wikipedia.org/wiki/Percent-encoding

Usually programming languages have methods/classes designed to do
that job (for Java is java.net.URLEncoder/URLDecoder, for javascript
there is one too, but I don't remember its name).
There are also online tools that do perform the URL encoding/decoding
for you, just Google for "online url encoder" and you'll find plenty.

Hope this helps

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.