Skip to content


Browse files Browse the repository at this point in the history
[DB Manager] fix for PostGIS Raster Layer
  • Loading branch information
slarosa committed Jun 11, 2013
1 parent 8392c93 commit 8cd8969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/db_plugins/postgis/
Expand Up @@ -292,10 +292,10 @@ def mimeUri(self):
return uri

def toMapLayer(self):
from qgis.core import QgsRasterLayer
from qgis.core import QgsRasterLayer, QgsContrastEnhancement
rl = QgsRasterLayer(self.gdalUri(),
if rl.isValid():
return rl

class PGTableField(TableField):
Expand Down

0 comments on commit 8cd8969

Please sign in to comment.