Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error accessing external WMS server -- WMS provider: Cannot calculate extent #21788

Closed
qgib opened this issue Nov 4, 2015 · 13 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Nov 4, 2015

Author Name: Mario FF (Mario FF)
Original Redmine Issue: 13762
Affected QGIS version: master
Redmine category:web_services_clients/wms


When adding any layer from "http://www.madrid.org/cartografia/ide/wms/WMS_MAPAS_TOPOGRAFICOS.xml" to QGIS, the following error is shown (in spanish):
WMS provider: No se puede calcular la extensión
Raster layer: El proveedor no es válido (proveedor: wms, URL: contextualWMSLegend=0&crs=EPSG:4230&dpiMode=7&featureCount=10&format=image/jpeg&layers=MADRID_38000_2008_2&styles=&url=http://www.madrid.org/cartografia/ide/wms/WMS_MAPAS_TOPOGRAFICOS.xml)

It has been happening in the last versions of QGIS


Related issue(s): #21352 (relates), #22557 (relates)
Redmine related issue(s): 13294, 14589


@qgib
Copy link
Contributor Author

qgib commented Nov 5, 2015

Author Name: Giovanni Manghi (@gioman)


I confirm the issue, also on master. This was not an issue on 1.8.


  • category_id was configured as Web Services clients/WMS
  • priority_id was changed from Normal to Severe/Regression
  • fixed_version_id was configured as Future Release - High Priority
  • version was changed from 2.12.0 to master

@qgib
Copy link
Contributor Author

qgib commented Jan 23, 2016

Author Name: Martin Dobias (@wonder-sk)


  • assigned_to_id was configured as Martin Dobias

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2016

Author Name: Martin Dobias (@wonder-sk)


This is an interesting case... normally WMS servers have one top-level layer, which then contains a bunch of sub-layers. In this case there are multiple top-level layers. Parsing of WMS capabilities in QGIS is a bit messy, so while in some places this is accepted, in others (like calculation of extent) it does not work.

The question is whether this is allowed by WMS: in 1.3.0 the XML schema says there is just one top-level layers, in 1.1.1 I am unable to find a statement for or against it (there is no XML schema, just DTD which does not provide such information). The backend server is ERDAS APOLLO. Maybe in this case of multiple top-level layers we could just patch the XML to have one empty top-level layer so that the rest of the code can make the usual assumptions.


  • assigned_to_id removed Martin Dobias

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2016

Author Name: Raul Nanclares (@rnanclares)


I just found this bug using geoserver, apparently it only affects version 2.14. Same WMS is working completely fine with 2.8 and 2.12. This WMS has many top-level raster layers but it's only happening on some of the layers not all. http://geo.guadalajara.gob.mx:8080/geoserver/gdlsig/wms?

Something that's even weirder the WMTS is working flawlessly.

@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2016

Author Name: Giovanni Manghi (@gioman)


see also #22557

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2016

Author Name: Richard Duivenvoorde (@rduivenvoorde)


I'm experiencing this behaviour here also with an older Geoserver version. BUT with normal capabilities.

When I have added a new layer, I get this error. Then sometimes after restarting QGIS, it will load, and after removing or restarting it will not load again...

I also did some fiddling with the cache-directory (which is not being saved with me by the way, see #22938)

When I set the cache directory I can add the layer, and KEEP being able to add it.

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2016

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Ok, definitly has something to do with the caching directory.

Adding a fresh layer in (already known) geoserver and trying to load the layer in QGIS I get the error.

BUT when I change the cache-directory in the settings to a fresh dir (like /tmp/foo) THEN QGIS just loads the layer...

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2016

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Maybe bring back the button 'clean cache'? back again would be helpfull in these cases (if impossible to fix otherways)

@qgib
Copy link
Contributor Author

qgib commented Jun 13, 2016

Author Name: Even Rouault (@rouault)


Fixed in changeset "1ec7ad5633bf3f34f69851afcb0c258ea28d132f".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 1, 2016

Author Name: Giovanni Manghi (@gioman)


Seems not fixed, see also

https://lists.osgeo.org/pipermail/qgis-developer/2016-August/044000.html


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2017

Author Name: Giovanni Manghi (@gioman)


This seems now ok on both 2.18.4 and master.


  • status_id was changed from Reopened to Closed
  • resolution was changed from to not reproducable

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Adam Szieberth (@SzieberthAdam)


Giovanni Manghi wrote:

This seems now ok on both 2.18.4 and master.

Still not fixed in 2.18.6. I had to manually clear cache/data7.

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Giovanni Manghi (@gioman)


Adam Szieberth wrote:

Giovanni Manghi wrote:

This seems now ok on both 2.18.4 and master.

Still not fixed in 2.18.6. I had to manually clear cache/data7.

try with 2.18.13, thanks.


It has been happening in the last versions of QGIS to When adding any layer from "http://www.madrid.org/cartografia/ide/wms/WMS_MAPAS_TOPOGRAFICOS.xml" to QGIS, the following error is shown (in spanish):
WMS provider: No se puede calcular la extensión
Raster layer: El proveedor no es válido (proveedor: wms, URL: contextualWMSLegend=0&crs=EPSG:4230&dpiMode=7&featureCount=10&format=image/jpeg&layers=MADRID_38000_2008_2&styles=&url=http://www.madrid.org/cartografia/ide/wms/WMS_MAPAS_TOPOGRAFICOS.xml)

It has been happening in the last versions of QGIS

  • priority_id was changed from Severe/Regression to Low

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant