RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs

2009-09-24 Thread Jason Roberts
> From: Jason Roberts [mailto:jason.robe...@duke.edu] > Sent: Wednesday, September 23, 2009 4:18 PM > To: 'gdal-dev' > Subject: RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs > > > > Someone suggested that I try this with 1.6.2 without saying whether it

RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs

2009-09-24 Thread Even Rouault
or unsigned > 8-bit? > > > > Thanks again, > > Jason > > > > From: gdal-dev-boun...@lists.osgeo.org > [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Jason Roberts > Sent: Wednesday, September 23, 2009 3:11 PM > To: 'gdal-dev' > Subject: [gd

RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs

2009-09-23 Thread Jason Roberts
y, September 23, 2009 4:18 PM To: 'gdal-dev' Subject: RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs Someone suggested that I try this with 1.6.2 without saying whether it might be a bug or by design. The behavior is the same with 1.6.2, using binaries produced by Tam

RE: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs

2009-09-23 Thread Jason Roberts
7; Subject: [gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs Is band.GetStatistics() supposed to work with signed 8-bit integer rasters with the HFA or GTiff driver? With GDAL 1.6.0, I can successfully create a signed 8-bit raster with the HFA or GTiff driver using the PIXELTYPE=

[gdal-dev] GetStatistics and signed 8-bit IMGs and GeoTIFFs

2009-09-23 Thread Jason Roberts
Is band.GetStatistics() supposed to work with signed 8-bit integer rasters with the HFA or GTiff driver? With GDAL 1.6.0, I can successfully create a signed 8-bit raster with the HFA or GTiff driver using the PIXELTYPE=SIGNEDBYTE option: >>> a = numpy.array([[-128, -1, 0, 1, 127]], dtype='i