Commit e3c54b26 authored by Emmanuel Christophe's avatar Emmanuel Christophe

Ajout du lambert2

parent 8231d1a0
......@@ -40,18 +40,10 @@ namespace otb
double falseNorthing=2200000;
std::string ellipsoid = "CE";
// typedef otb::LambertConformalConicForwardProjection LambertProjectionType;
// LambertProjectionType::Pointer lambertProjection = LambertProjectionType::New();
// lambertProjection->SetParameters(parall1, parall2, falseEasting, falseNorthing);
// lambertProjection->SetOrigin(oriPoint, datum);
// lambertProjection->SetEllipsoid(ellipsoid);
//
// this->m_MapProjection->setEllipsoid(ellipsoid);
// this->m_MapProjection->setOrigin(origin);
// this->m_MapProjection->setOrigin(datum);
// this->m_MapProjection->setParametersparall1, parall2, falseEasting, falseNorthing);
this->SetOrigin(origin, datum);
//TODO: 29-02-2008 Emmanuel: when ossim version > 1.7.2 only
// SetOrigin required (remove SetEllipsoid)
this->SetOrigin(origin, datum);
this->SetEllipsoid(ellipsoid);
this->SetParameters(parall1, parall2, falseEasting, falseNorthing);
}
......
......@@ -288,6 +288,8 @@ namespace otb
{
ossimGpt ossimOrigin(origin[1], origin[0]);
m_MapProjection->setOrigin(ossimOrigin);
//TODO: 29-02-2008 Emmanuel: when ossim version > 1.7.2 only
// SetOrigin required (remove SetDatum)
m_MapProjection->setDatum(ossimOrigin.datum());
}
......
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