Commit 89f0def0 authored by Julie Brossard's avatar Julie Brossard

[WIP] Set OTB domain

parent 6e85bdc9
Pipeline #6468 passed with stages
in 77 minutes and 3 seconds
......@@ -1904,6 +1904,7 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata(kwl, bIdx);
++bIdx;
}
}
void GDALImageIO::ImportMetadata()
......@@ -1936,7 +1937,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
if (kv.first == MetaData::MDGeomNames.left.at(MDGeom::SensorGeometry))
{
SetMetadataValue("MDGeomNames[MDGeom::SensorGeometry].", kv.second.c_str(), band);
SetMetadataValue("OTB/MDGeomNames[MDGeom::SensorGeometry].", kv.second.c_str(), band);
}
else if (kv.first == MetaData::MDGeomNames.left.at(MDGeom::RPC))
{
......@@ -1950,8 +1951,11 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
// WKT projection have already been exported (see InternalWriteImageInformation)
}
else
SetMetadataValue(kv.first.c_str(), kv.second.c_str(), band);
else{
std::string domain = "OTB";
std::string path = domain + "/" + kv.first ;
SetMetadataValue(path.c_str(), kv.second.c_str(), band);
}
}
}
......
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