Commit a2849807 authored by Cédric Traizet's avatar Cédric Traizet

ENH: use DimapMetadataHelper for spot 6

parent 08dcbdfc
Pipeline #4958 passed with stages
in 26 minutes and 16 seconds
......@@ -26,6 +26,8 @@
#include "otbImageKeywordlist.h"
#include "otbStringUtils.h"
#include "otbDimapMetadataHelper.h"
namespace otb
{
using boost::lexical_cast;
......@@ -1252,4 +1254,22 @@ Spot6ImageMetadataInterface::WavelengthSpectralBandVectorType Spot6ImageMetadata
return wavelengthSpectralBand;
}
void Spot6ImageMetadataInterface::Parse(const MetadataSupplierInterface *mds)
{
assert(mds);
std::cout << "Spot6ImageMetadataInterface::Parse" << std::endl;
auto metadatatype = mds->GetMetadataValue("METADATATYPE");
std::cout << (strcmp(metadatatype, "DIMAP") != 0) << std::endl;
// DIMAP metadata has already been parsed by gdal
if (metadatatype && !strcmp(metadatatype, "DIMAP"))
{
DimapMetadataHelper helper(mds);
helper.ParseRadiometry(m_Imd);
}
}
} // end namespace otb
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