#6371 closed defect (fixed)
[PATCH] gdaladdo inserts nodata values where they shouldn't be
Reported by: | larsl | Owned by: | larsl |
---|---|---|---|
Priority: | normal | Milestone: | 2.1.0 |
Component: | Algorithms | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: | antonio |
Description
Sometimes when gdaladdo generates overview layers for a band with a colour tables and a NODATA value it inserts NODATA pixels in the overview even though there are no NODATA pixels in the corresponding pixels in the source layer. This is because GDALFindBestEntry(), which finds the colour table entry whose colour best matches the averaged RGB value, doesn't care if the best match is NODATA or not. The attached patch makes GDALFindBestEntry() NODATA-aware, which fixes this bug for the 'average' and 'gauss' resampling methods.
Attachments (1)
Change History (8)
by , 8 years ago
Attachment: | 0001-Make-GDALFindBestEntry-NODATA-aware.patch added |
---|
comment:1 by , 8 years ago
Milestone: | → 2.1.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 8 years ago
Cc: | added |
---|
comment:4 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
larsl, Can you explain how the patch works? It would very helpful to have a paragraph describing how your patch works.
comment:5 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
Patch to make GDALFindBestEntry() NoData-aware