[Gdal-dev] NITF all black LUT, but GlobalMapper can show color

Frank Warmerdam warmerdam at pobox.com
Sat May 6 12:05:47 EDT 2006


list67 at netscape.net wrote:
> I have a CADRG formatted file.  When I run gdalinfo on the file, every
> entry in the color table is reported as black.  When I run the program
> through a debugger, it appears that the values immediately before and after
> the LUT fit within the range of expected values for those variables.  But
> for some reason the LUT is all zeros.  But when I load the file with
> GlobalMapper or Erdas Imagine, a map image is displayed.
> 
> The number of NITF images is reported as 1.  The psImage->nBands values is
> 1.  The NITF IREP is reported as RGB/LUT.  The NITF IC mode is M4 (which is
> different from another CADRG file that has a C4 NITF IC value and has
> various colors in the color table).  Do you know where GlobalMapper is
> getting the colors from?

Mike,

I suspect incomplete M4 handling but I'm not at all sure.  If I had a
sample file I would be willing to look into the problem.

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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list