Skip to content
Permalink
Browse files

Merge pull request #3503 from rldhont/processing_algs_qgis_intersection

[processing] bugfix: intersection QGIS algorithm
  • Loading branch information
alexbruy committed Sep 19, 2016
2 parents f5ffbbf + 3661bc3 commit 347a8c90fafb6f96a3f4d6c9f264ff707456a767
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/processing/algs/qgis/Intersection.py
@@ -96,8 +96,10 @@ def processAlgorithm(self, progress):
int_geom = QgsGeometry(geom.intersection(tmpGeom))
if int_geom.wkbType() == QgsWkbTypes.Unknown or QgsWkbTypes.flatType(int_geom.geometry().wkbType()) == QgsWkbTypes.GeometryCollection:
int_com = geom.combine(tmpGeom)
int_sym = geom.symDifference(tmpGeom)
int_geom = QgsGeometry(int_com.difference(int_sym))
int_geom = QgsGeometry()
if int_com:
int_sym = geom.symDifference(tmpGeom)
int_geom = QgsGeometry(int_com.difference(int_sym))
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 347a8c9

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