Skip to content
Snippets Groups Projects
Commit c41df558 authored by Julien Osman's avatar Julien Osman
Browse files

BUG: Use new metadata framework in Application::GetImageProjection

parent 54b1a704
No related branches found
No related tags found
2 merge requests!903Merge release branch 8.0.0 into develop,!900Use new metadata framework in Application::GetImageProjection
Pipeline #9933 passed
......@@ -1633,14 +1633,7 @@ unsigned int Application::GetImageNbBands(const std::string& key, unsigned int i
std::string Application::GetImageProjection(const std::string& key, unsigned int idx)
{
std::string proj;
const itk::MetaDataDictionary& dict = this->GetParameterImageBase(key, idx)->GetMetaDataDictionary();
if (!dict.HasKey(MetaDataKey::ProjectionRefKey))
return std::string("");
itk::ExposeMetaData<std::string>(dict, MetaDataKey::ProjectionRefKey, proj);
return proj;
return this->GetImageMetadata(key, idx).GetProjectedGeometry();
}
unsigned long Application::PropagateRequestedRegion(const std::string& key, ImageBaseType::RegionType region, unsigned int idx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment