Skip to content

Commit 1db8347

Browse files
committed
[sextante] update sample script to new API (fix #8278)
1 parent 31f193e commit 1db8347

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/plugins/sextante/script/scripts/Split_vector_layer_by_attribute.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# We get the actual object,
1616
layer = sextante.getobject(input)
1717
provider = layer.dataProvider()
18-
allAttrs = provider.attributeIndexes()
19-
provider.select( allAttrs )
2018
fields = provider.fields()
2119
writers = {}
2220

@@ -44,6 +42,5 @@
4442
outFeat.setAttributes(atMap)
4543
writers[clazz].addFeature(outFeat)
4644

47-
4845
for writer in writers.values():
49-
del writer
46+
del writer

0 commit comments

Comments
 (0)