Skip to content

Commit

Permalink
[DBManager] fix loading Rasterlite layer from DBManager to QGIS by dr…
Browse files Browse the repository at this point in the history
…ag'n'drop
  • Loading branch information
brushtyler committed Sep 21, 2015
1 parent 6a6e366 commit a17dac0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/plugins/db_manager/db_plugins/spatialite/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a17dac0

Please sign in to comment.