Commit 6bf596c6 authored by Julien Osman's avatar Julien Osman
Browse files

DOC: Remove references to OSSIM in docstrings

parent 839a2432
......@@ -24,12 +24,12 @@
*/
// OTB relies on OSSIM for elevation handling. Since release 3.16, there is a
// single configuration class \doxygen{otb}{DEMHandler} to manage elevation (in
// image projections or localization functions for example). This configuration
// Since release 8.0, OTB relies on GDAL for elevation handling. Since release 3.16,
// there is a single configuration class \doxygen{otb}{DEMHandler} to manage elevation
// (in image projections or localization functions for example). This configuration
// is managed by the a proper instantiation and parameters setting of this
// class. These instantiations must be done before any call to geometric
// filters or functionalities. Ossim internal accesses to elevation are also
// class. These instantiations must be done before any call to geometric
// filters or functionalities. GDAL internal accesses to elevation are also
// configured by this class and this will ensure consistency throughout the
// library.
......@@ -110,10 +110,6 @@ int main(int argc, char* argv[])
height = demHandler.GetHeightAboveEllipsoid(point);
std::cout << "height above ellipsoid (" << longitude << ", " << latitude << ") = " << height << " meters" << std::endl;
// Note that OSSIM internal calls for sensor
// modelling use the height above ellipsoid, and follow the same logic as the
// \code{GetHeightAboveEllipsoid()} method.
// Check for Nan
if (vnl_math_isnan(height))
{
......
......@@ -36,7 +36,7 @@
int main(int argc, char* argv[])
{
// We initialize ossim which is required for the orthorectification and we
// We initialize the sensor model which is required for the orthorectification and we
// check that all parameters are provided. Basically, we need:
// \begin{itemize}
// \item the name of the input PAN image;
......
......@@ -223,7 +223,6 @@ double Time::GetSecond() const
return tm_sec + frac_sec;
}
#if 1
double Time::GetJulianDay() const
{
// Conversion to julian day
......@@ -241,21 +240,6 @@ double Time::GetJulianDay() const
return julianDay;
}
#else // Ossim implementation, which produces slightly different results
double Time::GetJulianDay() const
{
int J = GetMonth();
int K = GetDay();
int I = GetYear();
return (K-32075+1461*(I+4800+(J-14)/12)/4+367*(J-2-(J-14)/12*12)
/12-3*((I+4900+(J-14)/12)/100)/4+
(GetHour()/24.0)+
(GetMinute()/1440.0)+
((GetSecond())/86400.0));
}
#endif
double Time::GetModifiedJulian() const
{
return GetJulianDay() - 2400000.5;;
......
......@@ -94,7 +94,7 @@ int otbRegionProjectionResampler(int argc, char* argv[])
if (model->IsValidSensorModel() == false)
{
std::cout << "Invalid Model pointer m_Model == NULL!\n The ossim keywordlist is invalid!" << std::endl;
std::cout << "Invalid Model pointer m_Model == NULL!\n The metadata is invalid!" << std::endl;
return EXIT_FAILURE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment