diff --git a/Testing/Code/Projections/otbCreateProjectionWithOSSIM.cxx b/Testing/Code/Projections/otbCreateProjectionWithOSSIM.cxx index edfd95a40fa60b688c3473da8bbcbdf956ae4b57..8d765bb4244ff08f2bbb7bc4afe11db029184be4 100644 --- a/Testing/Code/Projections/otbCreateProjectionWithOSSIM.cxx +++ b/Testing/Code/Projections/otbCreateProjectionWithOSSIM.cxx @@ -75,7 +75,7 @@ int otbCreateProjectionWithOSSIM( int argc, char* argv[] ) ossimKeywordlist geom; otbGenericMsgDebugMacro(<< "Read ossim Keywordlist..." ); - handler->saveState(geom); + handler->getImageGeometry()->getProjection()->saveState(geom); ossimGpt ossimGPoint(0,0); ossimDpt ossimDPoint; otbGenericMsgDebugMacro(<< "Creating projection..." );