Commit deb003c0 authored by Julie Brossard's avatar Julie Brossard

Revert "[WIP] Set OTB domain"

This reverts commit 89f0def0.
parent 43bd5e16
Pipeline #6533 failed with stages
in 123 minutes and 15 seconds
...@@ -1904,7 +1904,6 @@ void GDALImageIO::ExportMetadata() ...@@ -1904,7 +1904,6 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata(kwl, bIdx); KeywordlistToMetadata(kwl, bIdx);
++bIdx; ++bIdx;
} }
} }
void GDALImageIO::ImportMetadata() void GDALImageIO::ImportMetadata()
...@@ -1937,7 +1936,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int ...@@ -1937,7 +1936,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("OTB/MDGeomNames[MDGeom::SensorGeometry].", kv.second.c_str(), band); SetMetadataValue("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))
{ {
...@@ -1951,11 +1950,8 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int ...@@ -1951,11 +1950,8 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{ {
// WKT projection have already been exported (see InternalWriteImageInformation) // WKT projection have already been exported (see InternalWriteImageInformation)
} }
else{ else
std::string domain = "OTB"; SetMetadataValue(kv.first.c_str(), kv.second.c_str(), band);
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