Skip to content
Permalink
Browse files

Ftools-Sum Line length - Fix progress bar

  • Loading branch information
vinayan committed Jun 1, 2013
1 parent a39b78b commit ba4a3ccc1ab43d1e547c0a6028a2ac3f5a47aada
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/fTools/tools/doSumLines.py
@@ -112,8 +112,8 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
inGeom = QgsGeometry()
outGeom = QgsGeometry()
distArea = QgsDistanceArea()
start = 15.00
add = 85.00 / polyProvider.featureCount()
start = 0.00
add = 100.00 / polyProvider.featureCount()
check = QFile(self.shapefileName)
if check.exists():
if not QgsVectorFileWriter.deleteShapeFile(self.shapefileName):
@@ -142,5 +142,5 @@ def compute(self, inPoly, inLns, inField, outPath, progressBar):
#outFeat.setAttribute(index, QVariant(length))
writer.addFeature(outFeat)
start = start + 1
progressBar.setValue(start)
progressBar.setValue( start * (add))
del writer

0 comments on commit ba4a3cc

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