Skip to content
Permalink
Browse files
[processing] check symmetrical difference result before using it in
other geometry operations (fix #16010)
  • Loading branch information
alexbruy committed May 12, 2017
1 parent 9149ffb commit deb9667
Showing 1 changed file with 4 additions and 1 deletion.
@@ -121,7 +121,10 @@ def processAlgorithm(self, progress):
int_geom = QgsGeometry()
if int_com is not None:
int_sym = geom.symDifference(tmpGeom)
int_geom = QgsGeometry(int_com.difference(int_sym))
if int_sym:
diff_geom = int_com.difference(int_sym)
int_geom = QgsGeometry(diff_geom)

if int_geom.isGeosEmpty() or not int_geom.isGeosValid():
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('GEOS geoprocessing error: One or '

0 comments on commit deb9667

Please sign in to comment.