Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1850 from SrNetoChan/Bug_12001
fix Processing Keep n biggest parts algorithm (fix #12001)
  • Loading branch information
alexbruy committed Jan 22, 2015
2 parents 7c71a26 + e26eae9 commit cd556e6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,10 +33,10 @@
featres.setGeometry(geom)
else:
featres.setGeometry(geom)
geomres = [geoms[i].asPolygon() for i,a in geomarea[-1 * To_keep]]
geomres = [geoms[i].asPolygon() for i,a in geomarea[-1 * To_keep :]]
featres.setGeometry(QgsGeometry.fromMultiPolygon(geomres))
writer.addFeature(featres)
else:
writer.addFeature(feat)

del writer
del writer

0 comments on commit cd556e6

Please sign in to comment.