Skip to content
Permalink
Browse files

fix distance matrix k and k-1 issue

  • Loading branch information
vinayan committed Jul 26, 2013
1 parent 343696a commit 239810581b840a82d2dc8d800d25c015389781ac
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/fTools/tools/doPointDistance.py
@@ -149,6 +149,9 @@ def saveFile(self):
def compute(self, line1, line2, field1, field2, outPath, matType, nearest, progressBar):
layer1 = ftools_utils.getVectorLayerByName(line1)
layer2 = ftools_utils.getVectorLayerByName(line2)
if layer1.id() == layer2.id():
if nearest > 0:
nearest = nearest + 1
provider1 = layer1.dataProvider()
provider2 = layer2.dataProvider()
sindex = QgsSpatialIndex()

0 comments on commit 2398105

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