2003.10.31 00:45 "ask for suggestions....", by Zuyuan Wang

2003.10.31 00:51 "Re: ask for suggestions....", by Frank Warmerdam

I am dealing with the very huge TIFF tiled image. What I want to do now is first read the different tile image by ' TIFFReadTile' into a buffer, then I want to save it as a new TIFF image again. I used the ' TIFFWriteScanline', but the writen file can't be opened. I have the following questions:

  1. how can I read the data out from the tile data? Should I use ' TIFFGetR', 'TIFFGetG' and 'TIFFGetB'?
  2. when I get the data, how can i write them into the file?


tiff-admin is the wrong email address. You should email tiff@remotesensing.org.

The brief answers are:

  1. You will need to extract the data from the tile buffer returned by TIFFReadTile() manually based on the various data organization indicators in other tags, like planar configuration, number of samples, and bits per sample.
  2. I don't know why the file writtenwith TIFFWriteScanline() cannot be opened. You would need to supply more information. A "tiffinfo" and "tiffdump" report on the output file may be helpful.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

Editor's note: This mail was not originally archived, and has been reconstructed from quotes.