Skip to content

Commit

Permalink
ftools-fix split vector layer
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayan committed Apr 25, 2013
1 parent e0838b0 commit 4f54664
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/fTools/tools/doVectorSplit.py
Expand Up @@ -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")
Expand All @@ -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:
Expand Down

0 comments on commit 4f54664

Please sign in to comment.