qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.59k stars 3.01k forks source link

Elevation profile : points are not projected to each trace segment when tolerance is used #51379

Open jmkerloch opened 1 year ago

jmkerloch commented 1 year ago

What is the bug or the crash?

When using elevation profile tool with tolerance I expect to get my point projected to each segment of my trace.

Currently it's only projected to the first segment of my trace.

Example:

image image

OK : I have only one point projected on the first segment. The tolerance is too low to have a projection on the third segment of my trace.

Now if I increase the tolerance image image

KO : I have only one point projected on the first segment. I should also have another point projected on the third segment of my trace, near 5200m.

Steps to reproduce the issue

  1. Create a temporary point layer with CRS EPSG:3857
  2. Add a point and then save layer
  3. Open elevation profile tool
  4. Create an elevation curve shape as a U around the point with
  5. Increase tolerance for elevation profile tool
  6. There should be a tolerance value where the third segment of your profile will also cover the point

KO : only one point is projected on the elevation profile tool.

Versions

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

Version de QGIS | 3.28.1-Firenze | Révision du code | fde3b8fbb8 -- | -- | -- | -- Version de Qt | 5.15.3 Version de Python | 3.10.6 Version de GDAL/OGR | 3.4.1 Version de Proj | 8.2.1 Version de la base de données du registre EPSG | v10.041 (2021-12-03) Version de GEOS | 3.10.2-CAPI-1.16.0 Version de SQLite | 3.37.2 Version de PDAL | 2.3.0 Version du client PostgreSQL | unknown Version de SpatiaLite | 5.0.1 Version de QWT | 6.1.4 Version de QScintilla2 | 2.11.6 Version de l'OS | Ubuntu 22.04.1 LTS   |   |   |   Extensions Python actives plugin_reloader | 0.9.2 debug_vs | 0.7 processing | 2.12.99 MetaSearch | 0.3.6 grassprovider | 2.12.99 sagaprovider | 2.12.99 db_manager | 0.1.20 openlog | 0.8.0 Version de QGIS 3.28.1-Firenze Révision du code [fde3b8fbb8](https://github.com/qgis/QGIS/commit/fde3b8fbb8) Version de Qt 5.15.3 Version de Python 3.10.6 Version de GDAL/OGR 3.4.1 Version de Proj 8.2.1 Version de la base de données du registre EPSG v10.041 (2021-12-03) Version de GEOS 3.10.2-CAPI-1.16.0 Version de SQLite 3.37.2 Version de PDAL 2.3.0 Version du client PostgreSQL unknown Version de SpatiaLite 5.0.1 Version de QWT 6.1.4 Version de QScintilla2 2.11.6 Version de l'OS Ubuntu 22.04.1 LTS Extensions Python actives plugin_reloader 0.9.2 debug_vs 0.7 processing 2.12.99 MetaSearch 0.3.6 grassprovider 2.12.99 sagaprovider 2.12.99 db_manager 0.1.20 openlog 0.8.0 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [X] I tried with a new QGIS profile ### Additional context _No response_
jmkerloch commented 1 year ago

@nyalldawson this is a major issue for us.

I am willing to do the development to fix this but it will be better if we can discuss about it before going any further.