The elevation profile is wrong, as if the raster layer was shifted by 1/2 pixel in X & Y.
We can see here that we capture the centroids with the same Z value as the DEM pixel, the centroids are correctly placed in the elevation profile graphic, but the DEM line is not.
Examples are with a 25x25m pixel DEM.
Expected profile:
Another observation: sometimes, the DEM elevation profile is like "filled" with the pixel value
Steps to reproduce the issue
In DEM raster layer, check elevation surface representation
Create a PointZ layer to have references (raster pixels to points and set Z value processings)
Create a profile measurement with a tolerance to allow capturing the points
What is the bug or the crash?
The elevation profile is wrong, as if the raster layer was shifted by 1/2 pixel in X & Y.
We can see here that we capture the centroids with the same Z value as the DEM pixel, the centroids are correctly placed in the elevation profile graphic, but the DEM line is not.
Examples are with a 25x25m pixel DEM.
Expected profile:
Another observation: sometimes, the DEM elevation profile is like "filled" with the pixel value
Steps to reproduce the issue
Sample project to reproduce
Sample project and data inside GPKG : dem_elevation_profile.zip
Versions
QGIS 3.34.9 LTR
QGIS master https://github.com/qgis/QGIS/commit/623ceab11d8
Supported QGIS version
New profile
Additional context
No response