Bug report #514

WMS requested image size out of range error

Added by klaskarlsson-hotmail-com - almost 18 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Web Services clients/WMS
Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:10573

Description

I was just playing around a bit, and experienced the following when zooming in on Egypt using NASA WMS connection:

"Kunde inte rita NASA (JPL) för att:
(Unknown error code from a post-1.3 WMS server)
The WMS vendor also reported:
Requested image is too tall, max allowed height is 4096

This is probably due to a bug in the QGIS program. Please report this error.
Tried URL: http://wms.jpl.nasa.gov/wms.cgi?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&BBOX=31.215863,29.893489,31.574159,30.108694&SRS=EPSG:4326&WIDTH=2634&HEIGHT=5269&LAYERS=global_mosaic&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE"

Best regards...

History

#1 Updated by egroups_mip-gmx-fr - almost 18 years ago

I also stumbled over this problem which makes Quantum GIS pretty unusable for WMS.

(Unknown error code from a post-1.3 WMS server)
The WMS vendor also reported: 
msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels.

There seems to be no way to determine the max image dimensions and no standard error codes for this.

I suggest to try to parse the max dimension from error message after first failure, the retry with this value. If this fails, too, retry x times with smaller values.
Dimensions should be configurable when adding a WMS.

When it's only possible to get smaller tiles than initially requested, Quantum GIS should do tiling.

#2 Updated by anonymous - almost 18 years ago

WMS support is working well inside version 0.80beta2. Broken only in final release.

#3 Updated by alexandre-leroux-ec-gc-ca - almost 18 years ago

Hi, using 0.8.0 Final on Windows, get a similar error with another server:

(Unknown error code from a post-1.3 WMS server)
The WMS vendor also reported:
CubeSERV-35018: Image is wider than maximum allowed width of 800 (raised in
function validateMapRequestParameters() of file "map_request.c"
line 482)

This is probably due to a bug in the QGIS program. Please report this error.
Tried URL: http://wms.geobase.ca/wms-bin/cubeserv.cgi?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&BBOX=-179.902642,13.555667,180.000000,87.770302&SRS=EPSG:4326&WIDTH=1036&HEIGHT=215&LAYERS=DNEC_50K%3AELEVATION%2FELEVATION%2CCLI_LANDUSE%3ACEOWARE2%3ACCT%2FCCRS_OTTAWA&STYLES=Dnec_CITS%2CCMAP_CLI_LANDUSE&FORMAT=image/png&TRANSPARENT=TRUE

#4 Updated by sloan-comcast-net - over 17 years ago

Got a similar error on 0.8.0 on windows.

Could not draw USGS because:
(Unknown error code from a post-1.3 WMS server)
The WMS vendor also reported:
Exception in GetMap reply.
[ERR0924] Requested image is too big and cannot be created.

This is probably due to a bug in the QGIS program. Please report this error.
Tried URL: http://igskmncngs041.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Urban?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&BBOX=-72.506354,41.938684,-72.222231,42.158652&SRS=EPSG:4326&WIDTH=2577&HEIGHT=5155&LAYERS=Jan_2004_0.6m_Color_SpringfieldMA&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE

#5 Updated by Magnus Homann over 17 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

This should be fixed since . See #632 for more info.

#6 Updated by Anonymous over 15 years ago

Milestone Version 0.8.1 deleted

Also available in: Atom PDF