Commit fd386a12 authored by Julie Brossard's avatar Julie Brossard Committed by Cédric Traizet
Browse files

[WIP] Set OTB domain

parent 3f2d0cb8
......@@ -1909,6 +1909,7 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata(kwl, bIdx);
++bIdx;
}
}
void GDALImageIO::ImportMetadata()
......@@ -1941,7 +1942,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))
{
......@@ -1955,8 +1956,11 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
// 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