Skip to content

The name of a field in the statistical report has an wrong space character #61110

@news24lor

Description

@news24lor

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

Additional context

It's only in Windows version

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!FeedbackWaiting on the submitter for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions