On Tue, Aug 10, 2010 at 7:16 AM, Martin Raspaud <[email protected]> wrote:
> Hmmm, that sounds like a sufficient solution indeed, very good idea, thanks.
>
> Is there any scale/slope and offset/intercept tags defined in geotiff ?

Martin,

GDAL supports saving this style of metadata in a private tag as
defined at:

  http://www.awaresystems.be/imaging/tiff/tifftags/gdal_metadata.html

To do so with the GDAL API use the SetOffset and SetScale methods
on the GDALRasterBand:

  http://www.gdal.org/classGDALRasterBand.html#44e23beb3418c44a89d25ea708207fe1

I should note that in theory the TIFF specification allows a
mix of sample types, but in practice this is not done in the
real world, and libtiff does not support it.

GDAL *does* support reading mixed band types from a variety
of file formats, but not TIFF.  As noted, AddBand() can be used
in a few format cases to create mixed band types though this is
rarely done.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to