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 5e64c64
Showing 1 changed file with 2 additions and 3 deletions.
@@ -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.