[gdal-dev] GDAL Erdas LAN/GIS driver

Frank Warmerdam warmerdam at pobox.com
Fri Aug 21 09:18:23 EDT 2009


Roger Bivand wrote:
> Hi,
> 
> The code for the LAN/GIS driver uses GDT_Int16 for Pixel type 2, rather 
> than GDT_UInt16. Is this justified? A user of rgdal has a case of 
> unsigned 16-bit data stored by "a forest landscape model", being treated 
> by the driver as signed. The header does not seem to have a 
> signed/unsigned flag. Is this a problem of ambiguity in use of a 
> (closed?) specification, or should the driver be using GDT_UInt16?
> 
> I'm asking on the list first, because this may be ambiguity, not a bug.

Roger,

The only specification information I have on the format does not indicate
whether 16bit values should be treated as signed or unsigned.  If you are
confident that it should be treated as unsigned file a ticket and we will
fix it - hopefully this won't just break it for someone else!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list