mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix failing PyQgsBlendModes test
This commit is contained in:
parent
058cba2037
commit
415b467dd6
@ -30,6 +30,7 @@ from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
|
||||
from qgis.core import (QgsVectorLayer,
|
||||
QgsVectorSimplifyMethod,
|
||||
QgsMapLayerRegistry,
|
||||
QgsMapRenderer,
|
||||
QgsCoordinateReferenceSystem,
|
||||
@ -63,16 +64,19 @@ class TestQgsBlendModes(TestCase):
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user