Skip to content

Commit

Permalink
[sextante] update sample script to new API (fix #8278)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jul 14, 2013
1 parent 31f193e commit 1db8347
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -15,8 +15,6 @@
# We get the actual object,
layer = sextante.getobject(input)
provider = layer.dataProvider()
allAttrs = provider.attributeIndexes()
provider.select( allAttrs )
fields = provider.fields()
writers = {}

Expand Down Expand Up @@ -44,6 +42,5 @@
outFeat.setAttributes(atMap)
writers[clazz].addFeature(outFeat)


for writer in writers.values():
del writer
del writer

0 comments on commit 1db8347

Please sign in to comment.