[gdal-dev] gdal2tiles for 16bit data

Jan Tosovsky j.tosovsky at email.cz
Mon Sep 29 11:33:52 PDT 2014


On 2014-09-23 David Strip wrote:
> On 9/22/2014 2:18 PM, Jan Tosovsky wrote:
> > On 2014-09-21 David Strip wrote:
> > >
> > > If this still doesn't fix it, the first thing to do is run gdalinfo
> > > against one of the tiles and let us know the result.
> >
> > Thanks for the hint. I've checked the tiling source (correct file):
> >
> > ...
> > Metadata:
> >   AREA_OR_POINT=Area
> > Image Structure Metadata:
> >   INTERLEAVE=BAND
> > Corner Coordinates:
> > ...
> > Band 1 Block=256x256 Type=Int16, ColorInterp=Gray
> >   NoData Value=0
> >
> > While my tile is:
> > ...
> > Image Structure Metadata:
> >   INTERLEAVE=PIXEL
> > Corner Coordinates:
> > ...
> > Band 1 Block=256x8 Type=UInt16, ColorInterp=Gray
> > Band 2 Block=256x8 Type=UInt16, ColorInterp=Undefined
> >
> > What exactly is 'Block=256x256' and is 'Block=256x8' in the second
> > case correct?
> 
> The block  describes how the pixels are laid out in the file. The fact
> that the input and output block sizes are different is not an error.
> Likewise, interleave = band vs. pixel is a matter of internal
> organization and shouldn't matter.
> 

Thanks, this led me to a conclusion something was wrong in the Java part.
I've investigated related objects and found a different method for reading
values for cases with multiple bands in the image.

Now everything works as expected.

Thanks for patience,

Jan



More information about the gdal-dev mailing list