Ticket #3835 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 years ago

Invalid sample dimension with some WMS servers

Reported by: goyodiaz Owned by: jef
Priority: minor: annoyance Milestone:
Component: WMS Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Connect to this WMS server:  http://www.idee.es/wms/MTN-Raster/MTN-Raster? and add the only layer to the project. This warnong is displayed:

Request contains an invalid sample dimension value. The WMS vendor also reported:

Parámetros:

SERVICE=WMS VERSION=1.1.1 REQUEST=GetMap? BBOX=-1079461.786079,2422323.981410,1462704.713169,5128066.543535 SRS=EPSG:23030 WIDTH=32 HEIGHT=32 LAYERS=mtn_rasterizado STYLES= FORMAT=image/png TRANSPARENT=TRUE

Descripción del error:

Dimensión inválida: Ancho 50-2000 Alto 50-1700

Servicios disponibles:

This is because the image with the thumbnail for the legend can't be served. Everything else works but the message is annoying and appears every time you open a proyect with this layer (several times if you have several layers with this problem in the project).

Reproducible in Ubuntu and Windows using trunk.

Attachments

sample.qgs Download (5.8 KB) - added by goyodiaz 2 years ago.
Sample project

Change History

Changed 2 years ago by lutra

  • status changed from new to closed
  • resolution set to wontfix

In QGIS 1.7 you'll be able to select the size of the tile to use when adding WMS layers. I just tested trunl with your WMS server and it works fine (no error message) choosing -for example- a 256x256 tiles size.

Changed 2 years ago by goyodiaz

Sorry if I'm just making noise but I still get a warning using 256x256 tiles. I'm attaching a sample project which causes the problem on opening even using 256x256 px tiles. The message is just a bit different:

Request contains an invalid sample dimension value.
The WMS vendor also reported: 
  Parámetros: 
    SERVICE=WMS
    VERSION=1.1.1
    REQUEST=GetMap
    BBOX=-1059124.454085,2442661.313404,19278207.539893,22779993.307382
    SRS=EPSG:23030
    WIDTH=256
    HEIGHT=256
    LAYERS=mtn_rasterizado
    STYLES=
    FORMAT=image/png
    TILED=true
  Descripción del error: 
    La ventana solicitada es inválida
  Servicios disponibles: 
   

This can be avoided by unchecking "Create raster icons in legend" in general options, which is convenient for me, so I'm leaving the ticket as closed.

Changed 2 years ago by goyodiaz

Sample project

Changed 2 years ago by lutra

probably my bad. Setting tile size at 512x512 no problems.

Note: See TracTickets for help on using tickets.