Skip to content
Snippets Groups Projects
Commit 0b705222 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

BUG: Transmercator FalseEasting and Northing is not set to ossim projection.

parent a6c49dda
Branches
Tags
No related merge requests found
......@@ -348,12 +348,14 @@ void MapProjectionAdapter::ApplyParametersToProjection()
if (it != m_ParameterStore.end())
{
double value = atof((*it).second.c_str());
projection->setFalseNorthing(value);
}
it = m_ParameterStore.find("FalseEasting");
if (it != m_ParameterStore.end())
{
double value = atof((*it).second.c_str());
projection->setFalseEasting(value);
}
it = m_ParameterStore.find("StandardParallel1");
......@@ -427,16 +429,28 @@ void MapProjectionAdapter::ApplyParametersToProjection()
}
}
// Apply parameters to trasnmercator
// Apply parameters to transmercator
if (projectionName.compare("ossimTransMercatorProjection") == 0)
{
ossimTransMercatorProjection* projection = dynamic_cast<ossimTransMercatorProjection*>(this->GetMapProjection());
ossimTransMercatorProjection* projection = dynamic_cast<ossimTransMercatorProjection*> (this->GetMapProjection());
it = m_ParameterStore.find("ScaleFactor");
if (it != m_ParameterStore.end())
{
double scale = atof((*it).second.c_str());
projection->setScaleFactor(scale);
}
it = m_ParameterStore.find("FalseNorthing");
if (it != m_ParameterStore.end())
{
double value = atof((*it).second.c_str());
projection->setFalseNorthing(value);
}
it = m_ParameterStore.find("FalseEasting");
if (it != m_ParameterStore.end())
{
double value = atof((*it).second.c_str());
projection->setFalseEasting(value);
}
}
// Apply parameters to Utm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment