Re: [gdal-dev] gdal2tiles for 16bit data

2014-09-20 Thread David Strip
On 9/20/2014 9:02 AM, Jan Tosovsky wrote: But the final tif has most likely incorrect metadata as its reading via jai-imageio fails ArrayIndexOutOfBoundsException: 256 (Despite the Ok result when reading the tiling source image using the same method) Any idea? Th

Re: [gdal-dev] Forcing gdal translate to only rotate/scale

2014-09-20 Thread Even Rouault
Le samedi 20 septembre 2014 18:56:11, Jesse McGraw a écrit : > Is it possible to force gdal_translate to only rotate/scale an image > when given a list of more than two GCPs? > > I'm manually georeferencing maps which are all North-up and I'd like > to supply as many GCPs as possible to average ou

[gdal-dev] Forcing gdal translate to only rotate/scale

2014-09-20 Thread Jesse McGraw
Is it possible to force gdal_translate to only rotate/scale an image when given a list of more than two GCPs? I'm manually georeferencing maps which are all North-up and I'd like to supply as many GCPs as possible to average out my errors but if I provide more than two it will potentially skew the

Re: [gdal-dev] gdal2tiles for 16bit data

2014-09-20 Thread Jan Tosovsky
On 2014-09-20 David Strip wrote: > > On 9/20/2014 6:20 AM, Jan Tosovsky wrote: > > > > I am trying to produce GeoTiff tiles from my SRTM based GeoTiff: > > gdal2tiles.py -z 6-7 warped.tif D:\tiles-gdal > > > > The problem is that the final data is somehow converted from > > 16bit into 8bit so usele

Re: [gdal-dev] gdal2tiles for 16bit data

2014-09-20 Thread David Strip
A few lines before the ones you quoted from the script dstile is set to a raster in memory:  dstile = self.mem_drv.Create('', self.tilesize, self.tilesize, tilebands) This memory dataset driver defaults to a datatype of byte. You need to override this to the da

[gdal-dev] gdal2tiles for 16bit data

2014-09-20 Thread Jan Tosovsky
Dear All, I am trying to produce GeoTiff tiles from my SRTM based GeoTiff: gdal2tiles.py -z 6-7 warped.tif D:\tiles-gdal The problem is that the final data is somehow converted from 16bit into 8bit so useless for intended further processing. In the script there are following lines responsible f