Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
596a62bf
Commit
596a62bf
authored
13 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Projections/otbMapProjection.h
+4
-1
4 additions, 1 deletion
Code/Projections/otbMapProjection.h
Examples/Tutorials/OrthoFusion.cxx
+8
-8
8 additions, 8 deletions
Examples/Tutorials/OrthoFusion.cxx
with
12 additions
and
9 deletions
Code/Projections/otbMapProjection.h
+
4
−
1
View file @
596a62bf
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Examples/Tutorials/OrthoFusion.cxx
+
8
−
8
View file @
596a62bf
...
...
@@ -36,7 +36,7 @@
#include
"otbStreamingImageFileWriter.h"
#include
"otbOrthoRectificationFilter.h"
#include
"otbMapProjection
s
.h"
#include
"otb
Generic
MapProjection.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
utmMap
ProjectionType
;
utmMap
ProjectionType
::
Pointer
utmMapProjection
=
utmMapProjection
Type
::
New
(
);
utmMapProjection
->
Set
Zone
(
atoi
(
argv
[
4
])
)
;
utmMapProjection
->
SetHemisphere
(
*
(
argv
[
5
])
)
;
typedef
otb
::
GenericMapProjection
<
otb
::
TransformDirection
::
INVERSE
>
Inverse
ProjectionType
;
Inverse
ProjectionType
::
Pointer
utmMapProjection
=
InverseProjectionType
::
New
();
utmMapProjection
->
SetWkt
(
"Utm"
);
utmMapProjection
->
Set
Parameter
(
"Zone"
,
argv
[
4
]);
utmMapProjection
->
Set
Parameter
(
"
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
,
utmMap
ProjectionType
>
Inverse
ProjectionType
>
OrthoRectifFilterType
;
OrthoRectifFilterType
::
Pointer
orthoRectifPAN
=
...
...
@@ -179,7 +179,7 @@ int main(int argc, char* argv[])
// Software Guide : BeginCodeSnippet
typedef
otb
::
OrthoRectificationFilter
<
VectorImageType
,
DoubleVectorImageType
,
utmMap
ProjectionType
>
DoubleVectorImageType
,
Inverse
ProjectionType
>
VectorOrthoRectifFilterType
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment