Skip to content
Snippets Groups Projects
Commit 821248b8 authored by Romain Garrigues's avatar Romain Garrigues
Browse files

nomsg

parent 0b7dde34
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ namespace otb
/** Compute the world coordinates. */
OutputPointType TransformPoint(const InputPointType &point) const;
protected:
ForwardSensorModel();
virtual ~ForwardSensorModel();
......@@ -87,7 +87,11 @@ namespace otb
ForwardSensorModel(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
/** Difference between consecutives heights in iterative transform point with DEM */
double m_Epsilon;
/** Number of iterations in iterative transform point with DEM */
double m_NbIter;
};
......
......@@ -37,6 +37,7 @@ ForwardSensorModel< TScalarType,
::ForwardSensorModel()
{
m_Epsilon = 0.0001;
m_NbIter = 1;
}
template < class TScalarType,
......@@ -85,13 +86,13 @@ ForwardSensorModel< TScalarType,
{
ossimGpt ossimGPointRef = ossimGPoint;
double height, heightTmp ;
double diffHeight = 100;
double diffHeight = 100; // arbitrary value
itk::Point<double, 2> point;
int nbIter = 0;
otbMsgDevMacro(<< "USING DEM ! ") ;
while ((diffHeight > m_Epsilon) && (nbIter < 2))
while ((diffHeight > m_Epsilon) && (nbIter < m_NbIter))
{
otbMsgDevMacro(<< "Iter " << nbIter);
......
......@@ -84,12 +84,9 @@ namespace otb
void SetEllipsoid (const ossimEllipsoid &ellipsoid);
void SetEllipsoid(std::string code);
void SetEllipsoid(const double &major_axis, const double &minor_axis);
//OutputPointType Forward(const InputPointType &point) const;
//InputPointType Inverse(const OutputPointType &point) const;
OutputPointType TransformPoint(const InputPointType &point) const;
virtual InputPointType Origin();
//virtual void LineSampleToEastingNorthing(const InputPointType &linesample, InputPointType &eastingNorthing) const;
virtual double GetFalseNorthing() const;
virtual double GetFalseEasting() const;
virtual double GetStandardParallel1() const;
......@@ -112,11 +109,6 @@ namespace otb
void SetFalseEasting(double falseEasting);
virtual void PrintMap() const ;
/** Return the inverse of the transform.
* The inverse is recomputed if it has been modified */
//bool GetInverse(Self*) const ;
// virtual void Initialize(const InputPointType& middlePoint) {};
protected:
MapProjection();
......
......@@ -63,11 +63,8 @@ namespace otb
{
const ossimEllipsoid *ellipsoid = ossimEllipsoidFactory::instance()->create(ossimString(code));
double a=ellipsoid->getA();
//std::cout <<a<< std::endl;
double b=ellipsoid->getB();
//std::cout <<b<< std::endl;
//ossimString codes=ellipsoid->name();
//std::cout <<codes<< std::endl;
ossimEllipsoid ellipse(a,b);
delete m_MapProjection;
m_MapProjection= new OssimMapProjectionType(ellipse);
......@@ -359,12 +356,6 @@ namespace otb
std::cout << m_MapProjection->print(std::cout);
}
/*bool GetInverse(Self*) const
{
}*/
} // namespace otb
......
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