Hi All,
  I'm experimenting on the CIB issue only to have more hints of the exact
origin
of the problem.
I try to comment the block of code in nitfimage.c at line 3046 that reports 
the error on the location table corruption and that consequently resets the 
location table data structure :

CPLError( CE_Warning, CPLE_AppDefined,
            "Ignoring NITF RPF Location table since it seems to be corrupt."
);
            CPLFree( psImage->pasLocations );

psImage->pasLocations = NULL;
psImage->nLocCount = 0; 

After this modification I am able to display the map but with evident
visualization errors likely due to bad decompression. 
Perhaps this can be a consequence of some form of bad reading
of the QV LUT to decompress the image?
Last thing...As I said in my first post, OGDI have no problems to manage
these datasets. I tried to check the OGDI source code but I'm not a NITF
specialist and so I was not able to understand what are the actions that
OGDI do well respect to GDAL.


Best regards

Bruno M.



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Unable-to-load-CIB-datasets-with-GDAL-tp5756271p5770648.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to