Skip to content
Permalink
Browse files

ftools-fix split vector layer

  • Loading branch information
vinayan committed Apr 25, 2013
1 parent e0838b0 commit 4f54664900d23a58de261e734a546a75916be48d
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 4f54664

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