Skip to content
Permalink
Browse files

Merge pull request #2192 from Gustry/fix-13067

fix #13067 : bad geometries in the difference tool
  • Loading branch information
jef-n committed Jul 3, 2015
2 parents 29aaf1b + fe1a032 commit 4fba5ff4937df59e65e7e927f0d94ee6b5818a45
@@ -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

1 comment on commit 4fba5ff

@timlinux

This comment has been minimized.

Copy link
Member

@timlinux timlinux commented on 4fba5ff Jul 3, 2015

@Gustry there are more cases where geometry.difference are used - we should treat them all in the same way right? See for example:

diff_geom = QgsGeometry( diff_geom.difference( tmpGeom ) )

(I think there are more than just the above)

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