Skip to content
Permalink
Browse files

fix #13067 : bad geometries in the difference tool

(cherry picked from commit fe1a032)
  • Loading branch information
Gustry authored and jef-n committed Jul 3, 2015
1 parent 7b15f7a commit 2e77e9cdbccf80886fcc009c66bc5c7be1db6517
@@ -893,6 +893,10 @@ def difference( self ):
try:
if diff_geom.intersects( tmpGeom ):
diff_geom = QgsGeometry( diff_geom.difference( tmpGeom ) )
if diff_geom.isGeosEmpty():
GEOS_EXCEPT = False
add = False
break
except:
GEOS_EXCEPT = False
add = False
@@ -92,6 +92,10 @@ def processAlgorithm(self, progress):
try:
if diff_geom.intersects(tmpGeom):
diff_geom = QgsGeometry(diff_geom.difference(tmpGeom))
if diff_geom.isGeosEmpty():
GEOS_EXCEPT = False
add = False
break
except:
GEOS_EXCEPT = False
add = False

0 comments on commit 2e77e9c

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