DEMToOrthoImageGenerator

From OTBWiki
Jump to: navigation, search

The DEMToOrthoImageGenerator class is deprecated and remplaced by the DEMToImageGenerator class.

- Include:

 #include "otbDEMToOrthoImageGenerator.h"

to be replaced by

 #include "otbDEMToImageGenerator.h"


- Typedef:

 typedef otb::DEMToOrthoImageGenerator<ImageType, MapProjectionType> DEMToImageGeneratorType;

to be replaced by

 typedef typedef otb::DEMToImageGenerator<ImageType>  DEMToImageGeneratorType;


- Setting the map projection:

 object->SetMapProjection(mapProj);

to be replaced by

  std::string projectionRef = mapProj->GetWkt();
  object->SetOutputProjectionRef(projectionRef);


Back to Migration guide