Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong histogram plot if raster data type is byte #45379

Closed
2 tasks done
andremano opened this issue Oct 4, 2021 · 8 comments · Fixed by #45400
Closed
2 tasks done

Wrong histogram plot if raster data type is byte #45379

andremano opened this issue Oct 4, 2021 · 8 comments · Fixed by #45400
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@andremano
Copy link

What is the bug or the crash?

If a raster is of type byte, the histogram plot appears to be incorrect. Below the histogram calculated over a byte data type (incorrect):
image

If we export the raster into float32 then we get the correct histogram:
image

Steps to reproduce the issue

Use this dataset an calculate histogram over band 4 (example depicted above) over the tm24aug99_sub raster (byte) and comparre it with histogram obrained from tm24aug99_REFORGED (float32).

Versions

QGIS version
3.16.11-Hannover
QGIS code revision
26cc1c7
Compiled against Qt
5.15.2
Running against Qt
5.15.2
Compiled against GDAL/OGR
3.3.1
Running against GDAL/OGR
3.3.1
Compiled against GEOS
3.9.1-CAPI-1.14.2
Running against GEOS
3.9.1-CAPI-1.14.2
Compiled against SQLite
3.35.2
Running against SQLite
3.35.2
PostgreSQL Client Version
13.0
SpatiaLite Version
5.0.1
QWT Version
6.1.3
QScintilla2 Version
2.11.5
Compiled against PROJ
8.1.1
Running against PROJ
Rel. 8.1.1, September 1st, 2021
OS Version
Windows 10 Version 2009
Active python plugins
csv_tools;
pg_raster_import;
quick_map_services;
db_manager;
MetaSearch;
processing

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

In QGIS 3.10 this did not occur. Issue occurs since 3.16.1 and continues into 3.16.11.

@andremano andremano added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 4, 2021
@gioman
Copy link
Contributor

gioman commented Oct 4, 2021

@andremano duplicate of #44927 ?

@gioman gioman added the Feedback Waiting on the submitter for answers label Oct 4, 2021
@elpaso
Copy link
Contributor

elpaso commented Oct 4, 2021

I have the feeling that this was fixed in master, can you please check?

@andremano
Copy link
Author

@andremano duplicate of #44927 ?

It appears so.

@andremano
Copy link
Author

I have the feeling that this was fixed in master, can you please check?

sure

@andremano
Copy link
Author

I have the feeling that this was fixed in master, can you please check?

Issue remains. See below the test environment:

QGIS version 3.21.0-Master
QGIS code revision de53894

@gioman
Copy link
Contributor

gioman commented Oct 4, 2021

Issue remains. See below the test environment:

QGIS version 3.21.0-Master QGIS code revision de53894

@andremano please also leave this comment in the other ticket.

@andremano andremano reopened this Oct 4, 2021
@andremano
Copy link
Author

just re-opening this issue - i accidentely closed it

@gioman
Copy link
Contributor

gioman commented Oct 4, 2021

@andremano if is duplicate of the other ticket this must be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants