File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
python/plugins/processing/algs/qgis Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -85,16 +85,12 @@ def processAlgorithm(self, progress):
85
85
for current , inFeatA in enumerate (selectionA ):
86
86
progress .setPercentage (int (current * total ))
87
87
geom = QgsGeometry (inFeatA .geometry ())
88
- if not geom .isGeosValid ():
89
- raise GeoAlgorithmExecutionException (
90
- self .tr ('Input layer A contains invalid geometries. Unable to complete intersection algorithm.' ))
91
88
atMapA = inFeatA .attributes ()
92
89
intersects = index .intersects (geom .boundingBox ())
93
- for inFeatB in vlayerB .getFeatures (QgsFeatureRequest ().setFilterFids (intersects )):
90
+ for i in intersects :
91
+ request = QgsFeatureRequest ().setFilterFid (i )
92
+ inFeatB = vlayerB .getFeatures (request ).next ()
94
93
tmpGeom = QgsGeometry (inFeatB .geometry ())
95
- if not tmpGeom .isGeosValid ():
96
- raise GeoAlgorithmExecutionException (
97
- self .tr ('Input layer B contains invalid geometries. Unable to complete intersection algorithm.' ))
98
94
if geom .intersects (tmpGeom ):
99
95
atMapB = inFeatB .attributes ()
100
96
int_geom = QgsGeometry (geom .intersection (tmpGeom ))
You can’t perform that action at this time.
0 commit comments