Saving HDR with geom
Mantis Issue 333, reported by jmalik, assigned to jmichel, created: 2011-06-06
Saving an extract of image in sensor model geometry as a ENVI hdr file, the .geom is created, but when reading the file back in OTB, it is not interpreted.
Probably because we change the filename of .hdr for gdal, and use the wrong "base" to generate the .geom filename
1307455862 - julienmrenaming the file with .hdr.geom does not work also.
1307472673 - julienmfor a TIF saved with a .geom, ossimImageHandlerRegistry::openBySuffix is called, which then succeed by loading ossimTiffTileSource. After the regular TIFF field interpretation, its base class ossimImageHandler::completeOpen() is called, which in turn calls ossimImageHandler::loadMetaData(), loading the .geom properly
For ENVI files, the ossimGeneralRasterTileSource fails to initialize properly. ossimGeneralRasterTileSource::open fails in the call to generalRasterInfo.loadState(kwl): theNumberOfBands is not initialized properly at the end of ossimImageMetaData::loadState