Feature request #19150

Automatically Use max image dimensions from WMS Capabilities

Added by Tilman Brock-Hesse over 5 years ago. Updated about 5 years ago.

Category:Web Services clients/WMS
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:26980


Some WMS servers have a limit on the maximum image size they serve.
These sizes are (optionally) announced in the capabilities document, tags MaxWidth and MaxHeight, see the OGC xsd at http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd .

When sizes are not explicitly set by the user to a supported value errors in plotting and printing occur, see #3768 .

QGIS should use the MaxHeight and MaxWidth capabilities values (if present) as the default for the "tile size" option in the "Add WMS layer" dialog, and possibly also warn on entering sizes that are too large.

qgis-tilesize-lbeg.png (84.2 KB) Tilman Brock-Hesse, 2018-06-08 12:00 PM

Associated revisions

Revision b5d0c750
Added by Jürgen Fischer over 5 years ago

wms provider: avoid exceeding server limits by tiling the requests (implements #19150)


#1 Updated by Tilman Brock-Hesse over 5 years ago

See attached screenshot for the UI fields mentioned.

#2 Updated by Jürgen Fischer over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#3 Updated by Oliver Tonnhofer about 5 years ago

Won't this slow down normal map movement (pan/zoom) for servers that allow large prints? If the server advertises a MaxWidth and MaxHeight of 10.000 pixels, then QGIS will make HUGE tile requests. Or am I missing something?

Also available in: Atom PDF