Skip to content
Snippets Groups Projects
Commit 19b1ab54 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: make sure UpdateOutputInformation is called on input before getting srs

This fixes apTvSeSegmentationWatershedVector
Baseline updated. It had not the srs in it.
parent d404e42f
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,9 @@ void
PersistentImageToOGRLayerFilter<TImage>
::Initialize()
{
// Make sure input projection ref is set
const_cast<InputImageType*>(this->GetInput())->UpdateOutputInformation();
// Ensure that spatial reference of the output layer matches with
// the spatial reference of the input image
OGRSpatialReference oSRS(this->GetInput()->GetProjectionRef().c_str());
......
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