[Geoserver-users] Filter too long

Hi,

I try to send a GetMap request with Filter param like this :

http://localhost:8080/geoserver-1.4/wms?VERSION=1.0.0&request=GetMap&bbox=-180,-90,180,90&styles=green&Format=image/png&width=650&height=450&layers=topp:CAM_POLYGONE&srs=EPSG:4326&Filter=<Filter><FeatureId
fid='CAM_POLYGONE.5020050'/><FeatureId
fid='CAM_POLYGONE.5100010'/>....</Filter>

but I've a problem when number of <FeatureId fid='...'/> are higher than
160.
It's probably an HTTP limitation, If anybody have had this problem if he
could confirm that?

So I would like to send this GetMap by Post Request (like the example in
Geoserver Docs)
but I use mapbuilder and, with XmlHttpRequest, retrieving a image/png from
Geoserver seems to be impossible.

I would know if GeoserverUsers have a way to explore for retrieving result
of GetMap request in javascript or if it's only possible with JAVA or using
a toolkit like DWR

thanks in advance

--
View this message in context: http://www.nabble.com/Filter-too-long-tf2870143.html#a8021990
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Oliver,
indeed this is an old HTTP GET limitation and the combination with HTML <IMG>
tag is bothering since a long time ago.

I think its time to define a XML GetMap output format in such a way that you
can send a GetMap post request, get an XML response with the URL of the
generated image, and then apply that URL to the src attribute of a HTML <img>
tag.

something like
http://myserver/wms/&request=GetMap&format=application/xml;imageFormat:png&WIDTH

and get a response like:
<GetMapResponse>
<URL>http://myserver/tmp/img001.png&lt;/URL&gt;
</GetMapResponse>

Wonder what the mapbuilder folks think about it?

regards,

Gabriel

On Friday 22 December 2006 11:59, Olivier Terral wrote:

Hi,

I try to send a GetMap request with Filter param like this :

http://localhost:8080/geoserver-1.4/wms?VERSION=1.0.0&request=GetMap&bbox=-
180,-90,180,90&styles=green&Format=image/png&width=650&height=450&layers=top
p:CAM_POLYGONE&srs=EPSG:4326&Filter=<Filter><FeatureId
fid='CAM_POLYGONE.5020050'/><FeatureId
fid='CAM_POLYGONE.5100010'/>....</Filter>

but I've a problem when number of <FeatureId fid='...'/> are higher than
160.
It's probably an HTTP limitation, If anybody have had this problem if he
could confirm that?

So I would like to send this GetMap by Post Request (like the example in
Geoserver Docs)
but I use mapbuilder and, with XmlHttpRequest, retrieving a image/png from
Geoserver seems to be impossible.

I would know if GeoserverUsers have a way to explore for retrieving
result of GetMap request in javascript or if it's only possible with JAVA
or using a toolkit like DWR

thanks in advance

--
Gabriel Roldán (groldan@anonymised.com)
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
Fax. +34 944 41 64 90