Skip to content
Permalink
Browse files
Fix failing PyQgsBlendModes test
  • Loading branch information
nyalldawson committed Jan 30, 2014
1 parent 058cba2 commit 415b467dd66d5976d21c8236ad2663f01ee6f756
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/src/python/test_qgsblendmodes.py
@@ -30,6 +30,7 @@
from PyQt4.QtGui import *

from qgis.core import (QgsVectorLayer,
QgsVectorSimplifyMethod,
QgsMapLayerRegistry,
QgsMapRenderer,
QgsCoordinateReferenceSystem,
@@ -63,16 +64,19 @@ def __init__(self, methodName):
self.mPointLayer = QgsVectorLayer(myShpFile, 'Points', 'ogr')
self.mMapRegistry.addMapLayer(self.mPointLayer)

self.mSimplifyMethod = QgsVectorSimplifyMethod() ;
self.mSimplifyMethod.setSimplifyHints(QgsVectorLayer.NoSimplification);

# create polygon layer
myShpFile = os.path.join(TEST_DATA_DIR, 'polys.shp')
self.mPolygonLayer = QgsVectorLayer(myShpFile, 'Polygons', 'ogr')
self.mPolygonLayer.setSimplifyDrawingHints(QgsVectorLayer.NoSimplification)
self.mPolygonLayer.setSimplifyMethod(self.mSimplifyMethod)
self.mMapRegistry.addMapLayer(self.mPolygonLayer)

# create line layer
myShpFile = os.path.join(TEST_DATA_DIR, 'lines.shp')
self.mLineLayer = QgsVectorLayer(myShpFile, 'Lines', 'ogr')
self.mLineLayer.setSimplifyDrawingHints(QgsVectorLayer.NoSimplification)
self.mLineLayer.setSimplifyMethod(self.mSimplifyMethod)
self.mMapRegistry.addMapLayer(self.mLineLayer)

# create two raster layers

0 comments on commit 415b467

Please sign in to comment.