-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
What is the bug or the crash?
The "Raster layer unique value report" command provides the count and area of each unique value in the raster layer.
A "Unique values table" is created with three fields inside: ‘value’, ‘count’ and ‘m2’.
In QGIS for Windows, the field name "m2" has a space character at the beginning, ‘ m2’. This space character at the beginning is incorrect and leads to errors when programming. In the Linux and Mac versions, this error is not present.
The space character must be removed in the Windows version.
Steps to reproduce the issue
1 - Open QGIS (Windows version only)
2 - Select the raster layer
3 - From the Processing Toolbox select "Raster layer unique value report"
4 - Create a temporary "Unique values table"
5 - Press Run
6 - Double clic on the table and go to the Field section. You see the name of field " m2" with a space character at the beginning. This space character is wrong
Versions
3.42.0
Supported QGIS version
- I'm running a supported QGIS version according to the roadmap.
New profile
- I tried with a new QGIS profile
Additional context
It's only in Windows version