[gdal-dev] CreateCopy() Not writing ColorInterp Data
Frank Warmerdam
warmerdam at pobox.com
Tue Nov 18 16:03:43 EST 2008
Tom V. wrote:
> Hey,
>
> I'm using GDAL to read in a NITF image and write it out as either a NITF
> or a GeoTiff file, and I'm basically doing it the same way as
> gdal_translate but with a few changes. The reason I'm writing is because
> when the GeoTIFF gets written out using CreateCopy(), the ColorInterp data
> is gray for the first band and Undefined for the other three bands. We're
> using a stripped down version of GDAL so I can't use the SetAccess()
> method to
> write out to the file after it's already written. I tried reading it back
> in with the access set as GA_Update.
>
> Has anyone seen anything like this before, or know what the problem could
> be? I'd be happy to answer any questions or go into more detail.
Tom,
What does the gdalinfo report on the input dataset to the CreateCopy() look
like?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list