Skip to content

Commit d06ab3c

Browse files
committed
[sextante] fix Distance Matrix tool
1 parent 26582a2 commit d06ab3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/sextante/algs/ftools/PointDistance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def regularMatrix(self, inLayer, inField, targetLayer, targetField, nPoints, pro
163163
first = True
164164
current = 0
165165
features = QGisLayers.features(inLayer)
166-
total = 100.0 / float(features)
166+
total = 100.0 / float(len(features))
167167

168168
for inFeat in features:
169169
inGeom = inFeat.geometry()

0 commit comments

Comments
 (0)