Skip to content
Browse files
Revert "Check validity of input geometries in intersection algorithm"
This reverts commit dbbbf61.

Has broken some tests, needs more investigation
  • Loading branch information
m-kuhn committed Oct 20, 2016
1 parent dbbbf61 commit 01e570cc06b775eb333739d9c808eb585b490024
Showing 1 changed file with 3 additions and 7 deletions.
@@ -85,16 +85,12 @@ def processAlgorithm(self, progress):
for current, inFeatA in enumerate(selectionA):
progress.setPercentage(int(current * total))
geom = QgsGeometry(inFeatA.geometry())
if not geom.isGeosValid():
raise GeoAlgorithmExecutionException('Input layer A contains invalid geometries. Unable to complete intersection algorithm.'))
atMapA = inFeatA.attributes()
intersects = index.intersects(geom.boundingBox())
for inFeatB in vlayerB.getFeatures(QgsFeatureRequest().setFilterFids(intersects)):
for i in intersects:
request = QgsFeatureRequest().setFilterFid(i)
inFeatB = vlayerB.getFeatures(request).next()
tmpGeom = QgsGeometry(inFeatB.geometry())
if not tmpGeom.isGeosValid():
raise GeoAlgorithmExecutionException('Input layer B contains invalid geometries. Unable to complete intersection algorithm.'))
if geom.intersects(tmpGeom):
atMapB = inFeatB.attributes()
int_geom = QgsGeometry(geom.intersection(tmpGeom))

0 comments on commit 01e570c

Please sign in to comment.