Skip to main content

RequestUriTooLong from GetMap WMS Service

  • April 26, 2024
  • 1 reply
  • 111 views

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.

1 reply

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