Opened 19 years ago
Last modified 14 years ago
#1318 closed defect
SCALE can cause maxvalues to be transparent. — at Initial Version
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | GDAL Support | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
In mapdrawgdal.c, the computation for dfScaleRatio on line 1147 can cause pixels with values of "dfScaleMax" to be mapped to 256. If NoDataValue is -1, this causes the pixels to be transparent. Change to dfScaleRatio = 255.0/(dfScaleMax - dfScaleMin);
Note:
See TracTickets
for help on using tickets.