Opened 8 years ago
Closed 8 years ago
#6064 closed defect (fixed)
UINT16 default NoData update
Reported by: | thare | Owned by: | warmerdam |
---|---|---|---|
Priority: | low | Milestone: | 2.0.1 |
Component: | default | Version: | 1.10.1 |
Severity: | minor | Keywords: | UNIT16, NoData |
Cc: |
Description
In researching how the PDS2 driver handles NoData within a HiRISE unsigned 16bit image I notice the default NoDATA value for UNIN16 should be changed. I am still seeing inconsistent use of MISSING_CONSTANT and CORE_NULL in several PDS labels but this ticket is not tackling that. Those values can override the PDS defaults if they exist.
Summary: This change defines the default UINT16 Nodata value to 0.
So current
case 16 : if( strstr(osST,"UNSIGNED") != NULL ) eDataType = GDT_UInt16; else eDataType = GDT_Int16; dfNoData = NULL2; break;
Should be updated to:
case 16 : if( strstr(osST,"UNSIGNED") != NULL ) { eDataType = GDT_UInt16; dfNoData = NULL1; } else { eDataType = GDT_Int16; dfNoData = NULL2; } break;
questions? -Trent
Note:
See TracTickets
for help on using tickets.
trunk r29624, branches/2.0 r29625 "PDS: fix nodata value for UInt16 to be 0 (#6064, patch by Trent Hare)"