Skip to content
Permalink
Browse files
Code and comment tidy up in geometry clip test
  • Loading branch information
timlinux committed Dec 6, 2012
1 parent cd74d71 commit 5e64c64496f1196dd62481002f3220ad002ba5f7
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/src/python/test_qgsgeometry.py
@@ -247,7 +247,6 @@ def testSimplifyIssue4189(self):

def testClipping(self):
"""Test that we can clip geometries using other geometries."""
"""Check we can write a vector file."""
myMemoryLayer = QgsVectorLayer(
('LineString?crs=epsg:4326&field=name:string(20)&index=yes'),
'clip-in',
@@ -316,8 +315,8 @@ def testClipping(self):
mySymmetricalGeometry = myGeometry.symDifference(
myCombinedGeometry)
# Gives you areas outside the clip area
myDifferenceGeometry = myCombinedGeometry.difference(
myClipPolygon)
# myDifferenceGeometry = myCombinedGeometry.difference(
# myClipPolygon)
#print 'Original: %s' % myGeometry.exportToWkt()
#print 'Combined: %s' % myCombinedGeometry.exportToWkt()
#print 'Difference: %s' % myDifferenceGeometry.exportToWkt()

0 comments on commit 5e64c64

Please sign in to comment.