Commit 9c900290 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

EHN: renamed ReadGeometry method to ReadGeometryFromImage

parent 26d6dd8a
......@@ -375,7 +375,7 @@ ImageFileReader<TOutputImage>
output->SetDirection(direction); // Set the image direction cosines
// Update otb Keywordlist
ImageKeywordlist otb_kwl = ReadGeometry(lFileNameOssimKeywordlist);
ImageKeywordlist otb_kwl = ReadGeometryFromImage(lFileNameOssimKeywordlist);
// Pass the depth parameter from the tilemap around
if (strcmp(this->m_ImageIO->GetNameOfClass(), "TileMapImageIO") == 0)
......
......@@ -149,6 +149,12 @@ operator <<(std::ostream& os, const ImageKeywordlist& kwl)
ImageKeywordlist
ReadGeometry(const std::string& filename)
{
return ReadGeometryFromImage(filename);
}
ImageKeywordlist
ReadGeometryFromImage(const std::string& filename)
{
// Trying to read ossim MetaData
bool hasMetaData = false;
......
......@@ -113,7 +113,8 @@ private:
std::ostream & operator <<(std::ostream& os, const ImageKeywordlist& kwl);
// Free function to handle the keywordlist <-> files
ImageKeywordlist ReadGeometry(const std::string& filename);
itkLegacyMacro(ImageKeywordlist ReadGeometry(const std::string& filename));
ImageKeywordlist ReadGeometryFromImage(const std::string& filename);
void WriteGeometry(const ImageKeywordlist& otb_kwl, const std::string& filename);
} //namespace otb
......
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