Open kgjenkins opened 3 years ago
This issue is still valid on QGIS 3.22.3.
I don't fully understand C++, but I wonder if the problem is that the multiplier is getting applied twice, in lines 110 and 118 of qgsalgorithmshortestpathpointtopoint.cpp
Still encountering this issue in QGIS 3.34.3.
Describe the bug
When using the "Shortest path (point to point)" to calculate the "fastest" path, the result "cost" is in hours, but this value is incorrect if the project CRS is not in meters.
Calculating the fastest path with the exact same inputs, with the only difference being the project CRS, gives the following results:
Apparently, the number of hours is being multiplied by the ratio of project CRS units to meters.
How to Reproduce
The correct cost value should be 0.5
QGIS and OS versions
QGIS version 3.18.1-Zürich QGIS code revision 202f1bf7e5 Compiled against Qt 5.11.2 Running against Qt 5.11.2 Compiled against GDAL/OGR 3.1.4 Running against GDAL/OGR 3.1.4 Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3 Compiled against SQLite 3.29.0 Running against SQLite 3.29.0 PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0 QWT Version 6.1.3 QScintilla2 Version 2.10.8 Compiled against PROJ 6.3.2 Running against PROJ Rel. 6.3.2, May 1st, 2020 OS Version Windows 10 (10.0) Active python plugins DissolveWithStats; mmqgis; OSMDownloader; plugin_reloader; processing_saga_nextgen; processing_wbt; Qgis2threejs; qgis2web; QuickOSM; quick_map_services; SRTM-Downloader; valuetool; visualist; db_manager; processing