Skip to content
Permalink
Browse files

[DB Manager] fix for PostGIS Raster Layer

  • Loading branch information
slarosa committed Jun 11, 2013
1 parent 8392c93 commit 8cd8969a14dadaeed69d27cd8f2885b8f5a62454
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -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(), self.name)
if rl.isValid():
rl.setContrastEnhancementAlgorithm("StretchToMinimumMaximum")
rl.setContrastEnhancement(QgsContrastEnhancement.StretchToMinimumMaximum)
return rl

class PGTableField(TableField):

0 comments on commit 8cd8969

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