-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
What is the bug or the crash?
The QGIS tool “Netzdatensatz rastern” (native:meshrasterize) assigns mesh dataset values to the output raster shifted by half the assigned cell size.
It appears that mesh values for the raster cells are sampled at the respective "left upper" cell edge, rather than in its middle. This shifting effect is therefore linked to the chosen output cell size (raster resolution).
No error message is shown; the tool completes, but the output raster is shifted. More precisely, the raster values are shifted compared to the input mesh data.
Steps to reproduce the issue:
- Open QGIS 3.26 or 3.40.
- Use the “Netzdatensatz rastern” tool (native:meshrasterize) on a mesh dataset.
- Produce a raster with a known cell size and compare the location of values against the mesh.
- Observe that the output raster is shifted by half a cell.
Versions:
QGIS-Codeversion
0aece28
New profile:
- I tried with a new QGIS profile (please check this if you did).
Additional context:
Tested with QGIS 3.26 and 3.40 (different user profiles).The issue appears consistently. No error messages or logs are generated. The bug does not occur in third-party plugins.