[Geoserver-users] WMS GetMap filter and HTTP POST

Hi,

I'm trying to use WMS GetMap with a lengthy <Filter>...</Filter> in the URL.
Unfortunately, using a HTTP Get request, the filter causes the URL length to
exceed permitted limits.

So, I'm now trying to make the GetMap request using a HTTP POST request but
my question is, does geoserver (any version) support this?

Looking at the OGC standards, I think WMS 1.1.1 doesn't support HTTP POST
but WMS 1.3.0 does. Does geoserver support WMS 1.3.0?

Or...is there a way to specify a (varying) WMS filter without putting it in
the URL? That is, is there a command to dynamically set the filter in
geoserver prior to the GetMap request?

Any help appreciated,
Dave

--
View this message in context: http://www.nabble.com/WMS-GetMap-filter-and-HTTP-POST-tp21418431p21418431.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Dave,

Yes, GeoServer supports GetMap via post... for as long as I can remember which is 1.3 and above (could be wrong about the version).

If you fire up GeoServer with the default configuration that comes when you download and check out the sample requests page:

http://localhost:8080/geoserver/demoRequest.do

You should see a WMS_getMap_inlineFeatureSmile.xml which has an example of a WMS getMap post. You can of course ignore the InlineFeature element, but the example shows the structure.

-Justin

djud wrote:

Hi,

I'm trying to use WMS GetMap with a lengthy <Filter>...</Filter> in the URL.
Unfortunately, using a HTTP Get request, the filter causes the URL length to
exceed permitted limits.

So, I'm now trying to make the GetMap request using a HTTP POST request but
my question is, does geoserver (any version) support this?

Looking at the OGC standards, I think WMS 1.1.1 doesn't support HTTP POST
but WMS 1.3.0 does. Does geoserver support WMS 1.3.0?

Or...is there a way to specify a (varying) WMS filter without putting it in
the URL? That is, is there a command to dynamically set the filter in
geoserver prior to the GetMap request?

Any help appreciated,
Dave

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Thanks Justin,

I was just looking through previous forum posts...

WHICH I SHOULD HAVE DONE FIRST!

...and I see similar answer to yours.

Silly me.

Thanks for the help,
Dave

--
View this message in context: http://www.nabble.com/WMS-GetMap-filter-and-HTTP-POST-tp21418431p21418718.html
Sent from the GeoServer - User mailing list archive at Nabble.com.