Skip to content

Commit

Permalink
minor script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 16, 2017
1 parent 394b4f1 commit a70e73c
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -21,11 +21,9 @@

for count, f in enumerate(features):
outputFeature = f
if f.geometry():
if f.hasGeometry():
outputGeometry = f.geometry().centroid()
outputFeature.setGeometry(outputGeometry)

writer.addFeature(outputFeature)
feedback.setProgress(int(count * total))

del writer

0 comments on commit a70e73c

Please sign in to comment.