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

Moved ImportMetada function

parent 6ed3c4b2
......@@ -735,7 +735,6 @@ void GDALImageIO::InternalReadImageInformation()
if (m_NumberOfDimensions == 3)
m_Spacing[2] = 1;
char** papszMetadata = dataset->GetMetadata(nullptr);
/* -------------------------------------------------------------------- */
......@@ -922,10 +921,6 @@ void GDALImageIO::InternalReadImageInformation()
/* Report metadata. */
/* -------------------------------------------------------------------- */
ImportMetadata() ;
papszMetadata = dataset->GetMetadata(nullptr);
if (CSLCount(papszMetadata) > 0)
{
......@@ -1122,6 +1117,8 @@ void GDALImageIO::InternalReadImageInformation()
m_Imd.Bands.push_back(bmd);
}
ImportMetadata() ;
if (noDataFound)
{
itk::EncapsulateMetaData<MetaDataKey::BoolVectorType>(dict, MetaDataKey::NoDataValueAvailable, isNoDataAvailable);
......
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