Skip to content
Permalink
Browse files

[DBManager] fix loading Rasterlite layer from DBManager to QGIS by dr…

…ag'n'drop
  • Loading branch information
brushtyler committed Sep 21, 2015
1 parent 6a6e366 commit a17dac05615b8bdb63a48292841797a1d972d942
Showing with 2 additions and 6 deletions.
  1. +2 −6 python/plugins/db_manager/db_plugins/spatialite/plugin.py
@@ -277,12 +277,8 @@ def rasterliteGdalUri(self):
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):

0 comments on commit a17dac0

Please sign in to comment.
You can’t perform that action at this time.