Skip to content
Permalink
Browse files

[sextante] update sample script to new API (fix #8278)

  • Loading branch information
alexbruy committed Jul 14, 2013
1 parent 31f193e commit 1db8347adaf559f9f27c57caf7995eabb4f94824
Showing with 1 addition and 4 deletions.
  1. +1 −4 python/plugins/sextante/script/scripts/Split_vector_layer_by_attribute.py
@@ -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 = {}

@@ -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.
You can’t perform that action at this time.