Skip to content

Commit

Permalink
Fixes Processing Keep n biggest parts bug #12001
Browse files Browse the repository at this point in the history
  • Loading branch information
SrNetoChan committed Jan 21, 2015
1 parent 45ee1ad commit e26eae9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 e26eae9

Please sign in to comment.