SkipGeom extended filename option behavior
In otbImageFileReader.hxx
line 508 you have the following code :
if (!m_FilenameHelper->GetSkipGeom())
{
output->SetMetaDataDictionary(this->m_ImageIO->GetMetaDataDictionary());
this->SetMetaDataDictionary(this->m_ImageIO->GetMetaDataDictionary());
}
else
{
itk::MetaDataDictionary dictLight;
std::string projRef;
itk::ExposeMetaData(dict, MetaDataKey::ProjectionRefKey, projRef);
itk::EncapsulateMetaData<std::string>(dictLight, MetaDataKey::ProjectionRefKey, projRef);
output->SetMetaDataDictionary(dictLight);
this->SetMetaDataDictionary(dictLight);
}
which means that every MetaDataKey
are deleted except for the MetaDataKey::ProjectionRefKey
. That might not be the expected behavior. For instance we are getting ride of MetaDataKey::TileHintX
, MetaDataKey::TileHintY
, MetaDataKey::NoDataValueAvailable
, MetaDataKey::NoDataValue
.