Skip to content

Commit a17dac0

Browse files
committed
[DBManager] fix loading Rasterlite layer from DBManager to QGIS by drag'n'drop
1 parent 6a6e366 commit a17dac0

File tree

1 file changed

+2
-6
lines changed
  • python/plugins/db_manager/db_plugins/spatialite

1 file changed

+2
-6
lines changed

python/plugins/db_manager/db_plugins/spatialite/plugin.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,8 @@ def rasterliteGdalUri(self):
277277
return gdalUri
278278

279279
def mimeUri(self):
280-
if self.database().connector.isGpkg():
281-
# QGIS has no provider to load Geopackage rasters, let's use GDAL
282-
uri = u"raster:gdal:%s:%s" % (self.name, self.uri().database())
283-
else:
284-
# QGIS has no provider to load Rasterlite rasters, let's use GDAL
285-
uri = u"raster:gdal:%s:%s" % (self.name, self.rasterliteGdalUri())
280+
# QGIS has no provider to load rasters, let's use GDAL
281+
uri = u"raster:gdal:%s:%s" % (self.name, self.uri().database())
286282
return uri
287283

288284
def toMapLayer(self):

0 commit comments

Comments
 (0)