Sunday 16 July 2017

Geoserver POST filter to WMS layer



I have a filter that is currently used in URL, but it became more complicated and exceeds allowed URL length.


Is there a way to make a POST request with filter definition in a request body?


I tried to send following body, but without success. Tile is displayed, but not filtered.




key1
a



Answer




You can use a CQL filter and post the request as a form instead of as a URL, but with the same key and values as a normal GET.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...