Bug report #17350
In distance matrix a point is its own neighbour
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/QGIS | ||
Affected QGIS version: | 3.1(master) | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | Yes | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 25247 |
Description
If target point layer is the same as input point layer QGIS treats an input point as its own neighbour, but a neighbour is nearby not inside. It affects distance matrix option ,,Use only the nearest (k) target points" and gives false results in ,,summary distance matrix (mean, std. dev., min, max)" min is always 0. A solution: don't treat points with the same ID and layer as a neighbour.
Associated revisions
[processing] Fix Distance Matrix alg considers distances to
same points
Add more unit tests
Fixes #17350
[processing] Fix Distance Matrix alg considers distances to
same points
Add more unit tests
Fixes #17350
(cherry-picked from 7fa9d412)
History
#1 Updated by Pawel Stankiewicz about 7 years ago
2.18.14 is also affected, but I can't change it in the description.
#2 Updated by Giovanni Manghi about 7 years ago
- Affected QGIS version changed from 2.18.13 to 2.18.14
- Pull Request or Patch supplied changed from Yes to No
#3 Updated by Pawel Stankiewicz over 6 years ago
3.0.1 is also affected. Could someone set ,,Affected version" to master?
#4 Updated by Giovanni Manghi over 6 years ago
- Affected QGIS version changed from 2.18.14 to 3.1(master)
#5 Updated by Nyall Dawson over 6 years ago
- Status changed from Open to In Progress
- Pull Request or Patch supplied changed from No to Yes
#6 Updated by Nyall Dawson over 6 years ago
- % Done changed from 0 to 100
- Status changed from In Progress to Closed
Applied in changeset qgis|7fa9d4120a01effa68e3a6fd83cbbf5686784a97.