From 9e965d54df34b915f83121127e9128b5e9a286df Mon Sep 17 00:00:00 2001 From: Mickael Savinaud <mickael.savinaud@c-s.fr> Date: Mon, 25 Mar 2013 11:40:06 +0100 Subject: [PATCH] COMP: remove and replace a setDEMDirectory from an example --- Examples/Visualization/VectorDataRendering.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/Visualization/VectorDataRendering.cxx b/Examples/Visualization/VectorDataRendering.cxx index 3f22f8371c..e7107e8dd5 100644 --- a/Examples/Visualization/VectorDataRendering.cxx +++ b/Examples/Visualization/VectorDataRendering.cxx @@ -152,7 +152,10 @@ int main( int argc, char * argv[] ) projection->SetOutputKeywordList(reader->GetOutput()->GetImageKeywordlist()); projection->SetOutputOrigin(reader->GetOutput()->GetOrigin()); projection->SetOutputSpacing(reader->GetOutput()->GetSpacing()); - projection->SetDEMDirectory(demdirectory); // a good DEM is compulsory to get a reasonable registration + + // Manage the DEM through the DEMHandler which is the unique entry point for DEM + // The registration will be better. + otb::DEMHandler::Instance()->OpenDEMDirectory(demdirectory); // get some usefull information from the image to make sure that we are // going to render the vector data in the same geometry -- GitLab