[gdal-dev] Negative NoData Value with Signed Byte Raster

Jason Greenlaw - NOAA Affiliate jason.greenlaw at noaa.gov
Wed Apr 6 12:26:21 PDT 2016


Thanks for the workaround and quick fix.  The VRT addresses the issue on
the data end.  Now it's only an ArcGIS problem :)

Jason


On Wed, Apr 6, 2016 at 3:10 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le mercredi 06 avril 2016 20:38:36, Jason Greenlaw - NOAA Affiliate a
> écrit :
> > Hello,
> >
> > I've run into a snag trying to assign a negative NoData value to a Signed
> > Byte raster.
>
> Jason,
>
> I've just pushed a fix for that in trunk (signed byte is a bit of a second
> class citizen as a data type in GDAL, hence the issues) to avoid the
> erroneous
> clamping. You're supposed to put negative values.
> You can workaround the issue by first creating a VRT by adding
>
>     <NoDataValue>-128</NoDataValue>
>     <Metadata>
>       <MDI key="PIXELTYPE">SIGNEDBYTE</MDI>
>     </Metadata>
>
> in <VRTRasterBand>
>
> and then gdal_translate the VRT as TIFF
>
> Even
>
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160406/21e00b51/attachment.html>


More information about the gdal-dev mailing list