Skip to content
Permalink
Browse files

fix #13067 : bad geometries in the difference tool

  • Loading branch information
Gustry committed Jul 3, 2015
1 parent 2083d6d commit fe1a032181fb8f3c696918da71df777521f05ceb
@@ -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 fe1a032

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