selecting a SpectralProfile on a WMS (Google Satellite)

Issue #190 closed
Andreas Janz created an issue

QGIS/Box crashes when selecting a spectra in a WMS layer.

An error has occurred while executing Python code: 

RuntimeError: `type=xyz&url=https://mt1.google.com/vt/lyrs%3Ds%26x%3D%7Bx%7D%26y%3D%7By%7D%26z%3D%7Bz%7D&zmax=19&zmin=0' does not exist in the file system, and is not recognized as a supported dataset name. 
Traceback (most recent call last):
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\enmapboxgui.py", line 433, in loadCurrentMapSpectra
    p = SpectralProfile.fromRasterSource(path, spatialPoint)
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\spectrallibraries.py", line 1192, in fromRasterSource
    ds = gdalDataset(source)
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\gui\spectrallibraries.py", line 90, in gdalDataset
    pathOrDataset = gdal.Open(pathOrDataset, eAccess)
  File "C:\OSGEO4~1\apps\Python36\lib\site-packages\osgeo\gdal.py", line 2914, in Open
    return _gdal.Open(*args)
RuntimeError: `type=xyz&url=https://mt1.google.com/vt/lyrs%3Ds%26x%3D%7Bx%7D%26y%3D%7By%7D%26z%3D%7Bz%7D&zmax=19&zmin=0' does not exist in the file system, and is not recognized as a supported dataset name.


Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] 
QGIS version: 3.2.3-Bonn Bonn, 9b176802e5 

Python Path:
C:/OSGEO4~1/apps/qgis/./python
C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Work\source\QGISPlugIns
C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGEO4~1/apps/qgis/./python/plugins
C:\OSGeo4W64\bin\python36.zip
C:\OSGEO4~1\apps\Python36\DLLs
C:\OSGEO4~1\apps\Python36\lib
C:\OSGeo4W64\bin
C:\Users\janzandr\AppData\Roaming\Python\Python36\site-packages
C:\OSGEO4~1\apps\Python36
C:\OSGEO4~1\apps\Python36\lib\site-packages
C:\OSGEO4~1\apps\Python36\lib\site-packages\win32
C:\OSGEO4~1\apps\Python36\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python36\lib\site-packages\Pythonwin
C:\Work\source\hub-datacube
C:\Work\source\hub-workflow
C:\Work\source\QGISPlugIns\enmap-box-algorithms-provider
C:\Work\source\enmap-box-testdata
C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin
C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages
C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox
C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vrtbuilderplugin
C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages\vrtbuilder
C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps
C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps

Comments (2)

  1. Log in to comment