Skip to content
Permalink
Browse files

aligned test to 3.x version

  • Loading branch information
luipir committed Sep 12, 2017
1 parent 0aa8c84 commit 07009f833b72cc43b06e35b48f3ed63b3fba2cd5
@@ -331,13 +331,8 @@ def testSymbolSize(self):

sld_size_px = 6

# values for qgis 3.X
#sld_displacement_x_px = 3.3
#sld_displacement_y_px = 6.6

# values for qgis 2.x
sld_displacement_x_px = 0
sld_displacement_y_px = 0
sld_displacement_x_px = 3.3
sld_displacement_y_px = 6.6

sl = layer.rendererV2().symbol().symbolLayers()[0]
size = sl.size()
@@ -9,6 +9,10 @@
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Displacement>
<se:DisplacementX>3.3</se:DisplacementX>
<se:DisplacementY>6.6</se:DisplacementY>
</se:Displacement>
<se:Mark>
<se:WellKnownName>pentagon</se:WellKnownName>
<se:Fill>

0 comments on commit 07009f8

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