Skip to content
Permalink
Browse files

[processing] use proper way to access geometry

  • Loading branch information
bstroebl authored and m-kuhn committed Mar 16, 2016
1 parent 5ae0445 commit 8a841524276463ea338fa4c49d7c19f516295b99
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/Eliminate.py
@@ -240,7 +240,7 @@ def processAlgorithm(self, progress):
# Iterate over the polygons to eliminate
for i in range(len(featToEliminate)):
feat = featToEliminate.pop()
geom2Eliminate = feat.geometry()
geom2Eliminate = QgsGeometry(feat.geometry())
bbox = geom2Eliminate.boundingBox()
fit = inLayer.getFeatures(
QgsFeatureRequest().setFilterRect(bbox))
@@ -251,7 +251,7 @@ def processAlgorithm(self, progress):
selFeat = QgsFeature()

while fit.nextFeature(selFeat):
selGeom = selFeat.geometry()
selGeom = QgsGeometry(selFeat.geometry())

if geom2Eliminate.intersects(selGeom):
# We have a candidate

0 comments on commit 8a84152

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