Commit 09a82845 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: OTB-608: allow ImageKeywordlist to skip the Rpc tags

parent 8a39c16d
......@@ -195,7 +195,7 @@ ReadGeometry(const std::string& filename)
ReadGeometryFromImage(const std::string& filename)
ReadGeometryFromImage(const std::string& filename, bool checkRpcTag)
// Trying to read ossim MetaData
bool hasMetaData = false;
......@@ -272,7 +272,11 @@ ReadGeometryFromImage(const std::string& filename)
otb_kwl = ReadGeometryFromGEOMFile(ossimGeomFile);
// also check any RPC tags
ImageKeywordlist rpc_kwl = ReadGeometryFromRPCTag(filename);
ImageKeywordlist rpc_kwl;
if (checkRpcTag)
rpc_kwl = ReadGeometryFromRPCTag(filename);
if (otb_kwl.HasKey("type"))
......@@ -118,7 +118,7 @@ private:
std::ostream & operator <<(std::ostream& os, const ImageKeywordlist& kwl);
// Free function to handle the keywordlist <-> files
ImageKeywordlist ReadGeometryFromImage(const std::string& filename);
ImageKeywordlist ReadGeometryFromImage(const std::string& filename, bool checkRpcTag=true);
ImageKeywordlist ReadGeometryFromGEOMFile(const std::string& filename);
ImageKeywordlist ReadGeometryFromRPCTag(const std::string& filename);
void WriteGeometry(const ImageKeywordlist& otb_kwl, const std::string& filename);
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