Skip to content
Snippets Groups Projects
Commit 805e5dca authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: fix segfault after ossim update

parent 19d05de8
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,19 @@ int ossimRadarSatSupport( int argc, char* argv[] )
*/
ossimKeywordlist geom;
std::cout<<"Read ossim Keywordlist...";
if (! handler->getImageGeometry()->getProjection()->saveState(geom)) {
std::cout << "Bad metadata parsing "<< std::endl;
return EXIT_FAILURE;
}
bool hasMetaData = false;
ossimProjection* projection = handler->getImageGeometry()->getProjection();
if (projection)
{
hasMetaData = projection->saveState(geom);
}
if (! hasMetaData) {
std::cout << "Bad metadata parsing "<< std::endl;
return EXIT_FAILURE;
}
ossimGpt ossimGPoint(0,0);
ossimDpt ossimDPoint;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment