noaa-ocs-hydrography / qgis-raster-attribute-table-plugin

QGIS Raster Attribute Table Plugin
16 stars 4 forks source link

Uncaught RuntimeError: `crs=EPSG:3857&format&type=xyz&url=https://tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0' does not exist in the file system, and is not recognized as a supported dataset name. #22

Closed kankonaj closed 1 year ago

kankonaj commented 2 years ago

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:\Users/kanko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\RasterAttributeTable\RasterAttributeTable.py", line 152, in rendererChanged
    self.updateRatActions(raster_layer)
  File "C:\Users/kanko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\RasterAttributeTable\RasterAttributeTable.py", line 122, in updateRatActions
    if has_rat(layer):
  File "C:\Users/kanko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\RasterAttributeTable\rat_utils.py", line 521, in has_rat
    if get_rat(raster_layer, band).isValid():
  File "C:\Users/kanko/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\RasterAttributeTable\rat_utils.py", line 71, in get_rat
    ds = gdal.OpenEx(raster_layer.source())
  File "C:\PROGRA~1\QGIS32~1.7\apps\Python39\lib\site-packages\GDAL-3.4.3-py3.9-win-amd64.egg\osgeo\gdal.py", line 4120, in OpenEx
    return _gdal.OpenEx(*args, **kwargs)
RuntimeError: `crs=EPSG:3857&format&type=xyz&url=https://tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0' does not exist in the file system, and is not recognized as a supported dataset name.

RasterAttributeTable 1.1, QGIS 3.22.7-Białowieża on Windows 10

GlenRice-NOAA commented 1 year ago

duplicate to #27