RequestUriTooLong from GetMap WMS Service

I’m having problems retrieving images via GetMap from the WMS service.

The request is answered with the error System.Net.HttpStatusCode.RequestUriTooLong and, to avoid it, I would like to know the size limit of the request URL.

I will use Douglas Peucker’s polygon simplification approach until the URL is at the maximum allowed size, thus avoiding the loss of important information in the result image.

Another option is to switch to process API, which supports POST requests and is therefore not limited in length…

1 Like