Odd OSSIM warnings when loading a Pleiades image
Mantis Issue 635, reported by jmichel, assigned to salbert, created: 2013-02-13
WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. ossimPleiadesModel::finishConstruction -- caught exception: ossimSensorModel::computeGsdError topGpt has nans! WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. WARNING ossimRpcModel::lineSampleHeightToWorld: Max number of iterations reached in ground point solution. Results are inaccurate. ossimPleiadesModel::finishConstruction -- caught exception: ossimSensorModel::computeGsdError topGpt has nans!
1361789555 - julienThis is due to localisation. When using $ LANG="fr_FR.UTF-8" monteverdi2 The problem appears, but it does not when using $ LANG="en_US.UTF-8" monteverdi2
The XML files parsing in OSSIM seems to be influenced by locale and fails in the case of fr_FR. I suspect that in this case it uses ',' instead of '.' for floating point numbers.
1361791422 - julienProblem traces back to ossim. I opened a ticket: http://trac.osgeo.org/ossim/ticket/2335
1361793298 - julienmThen we definitely need to do something on our side too :
jmalik@hulk:~/dev/src/OTB/Code$ grep -rn atof * ApplicationEngine/otbWrapperNumericalParameter.h:71: ScalarType value = static_cast(atof(valueStr.c_str())); IO/otbWorldView2ImageMetadataInterface.cxx:484: double absCalFactor = atof(keywordStringAbsCalFactor.c_str()); IO/otbWorldView2ImageMetadataInterface.cxx:493: double calFactor = atof(keywordStringCalFactor.c_str()); IO/otbWorldView2ImageMetadataInterface.cxx:569: double valu