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() ...@@ -1909,6 +1909,7 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata(kwl, bIdx); KeywordlistToMetadata(kwl, bIdx);
++bIdx; ++bIdx;
} }
} }
void GDALImageIO::ImportMetadata() void GDALImageIO::ImportMetadata()
...@@ -1941,7 +1942,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int ...@@ -1941,7 +1942,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{ {
if (kv.first == MetaData::MDGeomNames.left.at(MDGeom::SensorGeometry)) 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)) else if (kv.first == MetaData::MDGeomNames.left.at(MDGeom::RPC))
{ {
...@@ -1955,8 +1956,11 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int ...@@ -1955,8 +1956,11 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{ {
// Projection have already been exported (see InternalWriteImageInformation) // Projection have already been exported (see InternalWriteImageInformation)
} }
else else{
SetMetadataValue(kv.first.c_str(), kv.second.c_str(), band); 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