Skip to content
Permalink
Browse files

Merge pull request #556 from vinayan/splitVector

[Fix #7618] - split vector layer does not work in master
  • Loading branch information
vinayan committed Apr 25, 2013
2 parents e0838b0 + 4f54664 commit 345a0aef87e265565b37b50da28eb18e4f1ac873
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/plugins/fTools/tools/doVectorSplit.py
@@ -170,7 +170,6 @@ def run(self):

self.emit(SIGNAL("rangeCalculated(PyQt_PyObject)"), len(unique))

fit = provider.getFeatures()

for i in unique:
check = QFile(baseName + "_" + unicode(i.toString().trimmed()) + ".shp")
@@ -182,7 +181,7 @@ def run(self):

writer = QgsVectorFileWriter(fName, self.encoding, fieldList, geom, sRs)

fit.rewind()
fit = provider.getFeatures()
while fit.nextFeature(inFeat):
atMap = inFeat.attributes()
if atMap[index] == i:

0 comments on commit 345a0ae

Please sign in to comment.
You can’t perform that action at this time.