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.65k stars 3.01k forks source link

Elevation profile DTM interpolation method may not be consistent with the projection of 2D point on terrain #59535

Open Simon-Lopez opened 2 days ago

Simon-Lopez commented 2 days ago

What is the bug or the crash?

Projection of 2D points on a terrain (Clamped to Terrain option) seems to use a nearest neighbor approach. As it is not the same as that used to draw the terrain profile in the Elevation Profile view (interpolation) we observe inconsistencies when zooming in the elevation profile view (cf. picture below).

image

Steps to reproduce the issue

  1. Create a layer with points
  2. Clamped them to terrain (Settings -> Elevation tab)
  3. Observe the point on a elevation profile

Versions

3.40.0

Supported QGIS version

New profile

Additional context

No response