Skip to content


[processing] check symmetrical difference result before using it in
Browse files Browse the repository at this point in the history
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.
5 changes: 4 additions & 1 deletion python/plugins/processing/algs/qgis/
Original file line number Diff line number Diff line change
Expand Up @@ -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,'GEOS geoprocessing error: One or '
Expand Down

0 comments on commit deb9667

Please sign in to comment.