diff --git a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx index 4923d4d994a0a22982e6565453cafc6a49c31ce1..03715f28f64fc794e388558622138644868fd4ac 100644 --- a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx +++ b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx @@ -60,6 +60,7 @@ #include "otbSensorModelAdapter.h" #include <memory> #include <boost/scoped_ptr.hpp> +#include <boost/algorithm/string/predicate.hpp> namespace otb { @@ -351,7 +352,7 @@ ImageKeywordlist ReadGeometryFromRPCTag(const std::string& filename) // to the header file" // No driver can open hdr file anyway. std::string extension = itksys::SystemTools::GetFilenameLastExtension(filename); - if ((extension == ".HDR") || (extension == ".hdr")) + if (boost::iequals(extension, ".hdr")) { return otb_kwl; }