Bug report #20799

Distance matrix output is false

Added by Romain Blanc over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:3.4.2 Regression?:No
Operating System:Windows 10 x64 Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:28619

Description

Take two points layers (example attached) and create a distance matrix in QGIS 2.18.26 and 3.4.2.

Results are different, and both are false. With points in example, max distance should be approximately 8 meters (max result of 2.18 -> 2820557.60885 ; 3.4 -> 2803875.70748).

The layers and the project are in EPSG 2056 (unit = meter). Meters are defined as default unit in QGIS preferences.

example_matrix.gpkg (248 KB) Romain Blanc, 2018-12-13 03:10 PM

Associated revisions

Revision 5c2f68e7
Added by Nyall Dawson over 5 years ago

[processing] Throw error when attempting to use Distance Matrix with
multipoint datasets

There's no single approach to use for multi-point inputs, so instead
of overloading this algorithm with extra options to control how these
are handled, we raise a helpful error and push the reponsibility back
to the user to get the data into the right format before running the
tool.

Fixes #20799

Revision 489f32d8
Added by Nyall Dawson over 5 years ago

[processing] Throw error when attempting to use Distance Matrix with
multipoint datasets

There's no single approach to use for multi-point inputs, so instead
of overloading this algorithm with extra options to control how these
are handled, we raise a helpful error and push the reponsibility back
to the user to get the data into the right format before running the
tool.

Fixes #20799

(cherry picked from commit 5c2f68e769509a7aac89898990de0ffdeff0d6e0)

History

#1 Updated by Romain Blanc over 5 years ago

Same data with ArcGIS Point Distance analysis return correct values.

#2 Updated by Nyall Dawson over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#3 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF