Skip to content
Snippets Groups Projects
Commit 596a62bf authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: otb::MapProjection marked as deprecated, example of migration in the tutorial

parent b90aba4d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,9 @@
#ifndef __otbMapProjection_h
#define __otbMapProjection_h
//Use GenericMapProjection instead
#include "vcl_deprecated_header.h"
#include <iostream>
#include <sstream>
#include <stdio.h>
......@@ -35,7 +38,7 @@ namespace otb
{
/** \class MapProjection
* \brief This is the base class for all geographic projections (UTM, Lambert, ...)
* \brief <b>DEPRECATED</b> (use GenericMapProjection instead): This is the base class for all geographic projections (UTM, Lambert, ...)
*
* The forward transformation will transform the coordinate for the geographic to the
* cartographic. The inverse model will transform from the cartographic to the geographic.
......
......@@ -36,7 +36,7 @@
#include "otbStreamingImageFileWriter.h"
#include "otbOrthoRectificationFilter.h"
#include "otbMapProjections.h"
#include "otbGenericMapProjection.h"
#include "otbSimpleRcsPanSharpeningFusionImageFilter.h"
#include "otbStandardFilterWatcher.h"
......@@ -115,11 +115,11 @@ int main(int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::UtmInverseProjection utmMapProjectionType;
utmMapProjectionType::Pointer utmMapProjection =
utmMapProjectionType::New();
utmMapProjection->SetZone(atoi(argv[4]));
utmMapProjection->SetHemisphere(*(argv[5]));
typedef otb::GenericMapProjection<otb::TransformDirection::INVERSE> InverseProjectionType;
InverseProjectionType::Pointer utmMapProjection = InverseProjectionType::New();
utmMapProjection->SetWkt("Utm");
utmMapProjection->SetParameter("Zone", argv[4]);
utmMapProjection->SetParameter("Hemisphere", argv[5]);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......@@ -156,7 +156,7 @@ int main(int argc, char* argv[])
// Software Guide : BeginCodeSnippet
typedef otb::OrthoRectificationFilter<ImageType, DoubleImageType,
utmMapProjectionType>
InverseProjectionType>
OrthoRectifFilterType;
OrthoRectifFilterType::Pointer orthoRectifPAN =
......@@ -179,7 +179,7 @@ int main(int argc, char* argv[])
// Software Guide : BeginCodeSnippet
typedef otb::OrthoRectificationFilter<VectorImageType,
DoubleVectorImageType, utmMapProjectionType>
DoubleVectorImageType, InverseProjectionType>
VectorOrthoRectifFilterType;
......
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