mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[DBManager] fix loading Rasterlite layer from DBManager to QGIS by drag'n'drop
This commit is contained in:
parent
6a6e366c04
commit
a17dac0561
@ -277,12 +277,8 @@ class SLRasterTable(SLTable, RasterTable):
|
||||
return gdalUri
|
||||
|
||||
def mimeUri(self):
|
||||
if self.database().connector.isGpkg():
|
||||
# QGIS has no provider to load Geopackage rasters, let's use GDAL
|
||||
uri = u"raster:gdal:%s:%s" % (self.name, self.uri().database())
|
||||
else:
|
||||
# QGIS has no provider to load Rasterlite rasters, let's use GDAL
|
||||
uri = u"raster:gdal:%s:%s" % (self.name, self.rasterliteGdalUri())
|
||||
# QGIS has no provider to load rasters, let's use GDAL
|
||||
uri = u"raster:gdal:%s:%s" % (self.name, self.uri().database())
|
||||
return uri
|
||||
|
||||
def toMapLayer(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user