Skip to content

Distance Matrix returns wrong record/result when using Linear Distance Matrix with k=1 #45493

Description

@ccalabrese82

What is the bug or the crash?

Hi,
I am doing distance analysis between two points group, through linear distance matrix (k=1), semplifying:

group A (single point):
lat 37.324500
lon 13.578444

group B (two points):
lat1 37.323550
lon1 13.59229
lat2 37.31261
lon2 13.578999

the minimun distance from the point in group A is actually from lat1/lon2 point (1231 meters), but Qgis provide the lat2/lon2 point (1320 meters) as minimum distance.

Why does it happen?
Thank you

Steps to reproduce the issue

Linear Distance Matrix, k=1

Versions

3.6.3-Noosa

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!ProcessingRelating to QGIS Processing framework or individual Processing algorithms

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions