Commit ffa8809c authored by Julien Osman's avatar Julien Osman
Browse files

REFAC: Update IO module elements so they use ImageMetadata instead of KeywordLists

parent 434a00f2
......@@ -84,7 +84,7 @@ void ImageToOSMVectorDataGenerator<TImage>::EstimateImageExtent()
// Local generic RS Transform to project the 4 corners to WGS84
typedef otb::GenericRSTransform<> TransformType;
typename TransformType::Pointer transform = TransformType::New();
transform->SetInputKeywordList(input->GetImageKeywordlist());
transform->SetInputImageMetadata(input->GetImageMetadata());
transform->SetInputProjectionRef(input->GetProjectionRef());
transform->SetOutputProjectionRef(otb::SpatialReference::FromWGS84().ToWkt());
transform->InstantiateTransform();
......
......@@ -415,7 +415,7 @@ void KmzProductWriter<TInputImage>::Tiling()
/** TODO : Generate KML for this tile */
// Search Lat/Lon box
m_Transform = TransformType::New();
m_Transform->SetInputKeywordList(m_ResampleVectorImage->GetImageKeywordlist());
m_Transform->SetInputImageMetadata(m_ResampleVectorImage->GetImageMetadata());
m_Transform->SetInputProjectionRef(m_VectorImage->GetProjectionRef());
m_Transform->SetOutputProjectionRef(wgsRef);
m_Transform->InstantiateTransform();
......
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