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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
9bfda884
Commit
9bfda884
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
EHN: simplification of generic_main arguments
parent
acae97c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projections/otbConvertCartoToGeoPoint.cxx
+9
-9
9 additions, 9 deletions
Projections/otbConvertCartoToGeoPoint.cxx
with
9 additions
and
9 deletions
Projections/otbConvertCartoToGeoPoint.cxx
+
9
−
9
View file @
9bfda884
...
@@ -45,7 +45,7 @@ PURPOSE. See the above copyright notices for more information.
...
@@ -45,7 +45,7 @@ PURPOSE. See the above copyright notices for more information.
template
<
typename
TMapProjection
>
template
<
typename
TMapProjection
>
int
generic_main_carto_geo
(
int
argc
,
char
*
argv
[],
TMapProjection
*
mapProjection
,
otb
::
CommandLineArgumentParseResult
*
parseResult
)
int
generic_main_carto_geo
(
TMapProjection
*
mapProjection
,
otb
::
CommandLineArgumentParseResult
*
parseResult
)
{
{
try
try
...
@@ -157,7 +157,7 @@ int main(int argc, char* argv[])
...
@@ -157,7 +157,7 @@ int main(int argc, char* argv[])
utmProjection
->
SetZone
(
numZone
);
utmProjection
->
SetZone
(
numZone
);
utmProjection
->
SetHemisphere
(
hemisphere
);
utmProjection
->
SetHemisphere
(
hemisphere
);
return
generic_main_carto_geo
<
UtmProjectionType
>
(
argc
,
argv
,
utmProjection
,
parseResult
);
return
generic_main_carto_geo
<
UtmProjectionType
>
(
utmProjection
,
parseResult
);
}
}
else
else
{
{
...
@@ -175,21 +175,21 @@ int main(int argc, char* argv[])
...
@@ -175,21 +175,21 @@ int main(int argc, char* argv[])
lambertProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
],
parameters
[
2
],
parameters
[
3
]);
lambertProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
],
parameters
[
2
],
parameters
[
3
]);
return
generic_main_carto_geo
<
LambertProjectionType
>
(
argc
,
argv
,
lambertProjection
,
parseResult
);
return
generic_main_carto_geo
<
LambertProjectionType
>
(
lambertProjection
,
parseResult
);
}
}
else
if
((
typeMap
==
"LAMBERT2"
)
&&
(
nbParams
==
0
))
else
if
((
typeMap
==
"LAMBERT2"
)
&&
(
nbParams
==
0
))
{
{
typedef
otb
::
Lambert2EtenduInverseProjection
Lambert2ProjectionType
;
typedef
otb
::
Lambert2EtenduInverseProjection
Lambert2ProjectionType
;
Lambert2ProjectionType
::
Pointer
lambert2Projection
=
Lambert2ProjectionType
::
New
();
Lambert2ProjectionType
::
Pointer
lambert2Projection
=
Lambert2ProjectionType
::
New
();
return
generic_main_carto_geo
<
Lambert2ProjectionType
>
(
argc
,
argv
,
lambert2Projection
,
parseResult
);
return
generic_main_carto_geo
<
Lambert2ProjectionType
>
(
lambert2Projection
,
parseResult
);
}
}
else
if
((
typeMap
==
"LAMBERT93"
)
&&
(
nbParams
==
0
))
else
if
((
typeMap
==
"LAMBERT93"
)
&&
(
nbParams
==
0
))
{
{
typedef
otb
::
Lambert93InverseProjection
Lambert93ProjectionType
;
typedef
otb
::
Lambert93InverseProjection
Lambert93ProjectionType
;
Lambert93ProjectionType
::
Pointer
lambert93Projection
=
Lambert93ProjectionType
::
New
();
Lambert93ProjectionType
::
Pointer
lambert93Projection
=
Lambert93ProjectionType
::
New
();
return
generic_main_carto_geo
<
Lambert93ProjectionType
>
(
argc
,
argv
,
lambert93Projection
,
parseResult
);
return
generic_main_carto_geo
<
Lambert93ProjectionType
>
(
lambert93Projection
,
parseResult
);
}
}
else
if
((
typeMap
==
"SINUS"
)
&&
(
nbParams
==
2
))
else
if
((
typeMap
==
"SINUS"
)
&&
(
nbParams
==
2
))
{
{
...
@@ -198,7 +198,7 @@ int main(int argc, char* argv[])
...
@@ -198,7 +198,7 @@ int main(int argc, char* argv[])
sinusoidalProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
sinusoidalProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
return
generic_main_carto_geo
<
SinusoidalProjectionType
>
(
argc
,
argv
,
sinusoidalProjection
,
parseResult
);
return
generic_main_carto_geo
<
SinusoidalProjectionType
>
(
sinusoidalProjection
,
parseResult
);
}
}
else
if
((
typeMap
==
"ECKERT4"
)
&&
(
nbParams
==
2
))
else
if
((
typeMap
==
"ECKERT4"
)
&&
(
nbParams
==
2
))
{
{
...
@@ -207,7 +207,7 @@ int main(int argc, char* argv[])
...
@@ -207,7 +207,7 @@ int main(int argc, char* argv[])
eckert4Projection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
eckert4Projection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
return
generic_main_carto_geo
<
Eckert4ProjectionType
>
(
argc
,
argv
,
eckert4Projection
,
parseResult
);
return
generic_main_carto_geo
<
Eckert4ProjectionType
>
(
eckert4Projection
,
parseResult
);
}
}
else
if
((
typeMap
==
"TRANSMERCATOR"
)
&&
(
nbParams
==
3
))
else
if
((
typeMap
==
"TRANSMERCATOR"
)
&&
(
nbParams
==
3
))
{
{
...
@@ -216,7 +216,7 @@ int main(int argc, char* argv[])
...
@@ -216,7 +216,7 @@ int main(int argc, char* argv[])
transMercatorProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
],
parameters
[
2
]);
transMercatorProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
],
parameters
[
2
]);
return
generic_main_carto_geo
<
TransMercatorProjectionType
>
(
argc
,
argv
,
transMercatorProjection
,
parseResult
);
return
generic_main_carto_geo
<
TransMercatorProjectionType
>
(
transMercatorProjection
,
parseResult
);
}
}
else
if
((
typeMap
==
"MOLLWEID"
)
&&
(
nbParams
==
2
))
else
if
((
typeMap
==
"MOLLWEID"
)
&&
(
nbParams
==
2
))
{
{
...
@@ -225,7 +225,7 @@ int main(int argc, char* argv[])
...
@@ -225,7 +225,7 @@ int main(int argc, char* argv[])
mollweidProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
mollweidProjection
->
SetParameters
(
parameters
[
0
],
parameters
[
1
]);
return
generic_main_carto_geo
<
MollweidProjectionType
>
(
argc
,
argv
,
mollweidProjection
,
parseResult
);
return
generic_main_carto_geo
<
MollweidProjectionType
>
(
mollweidProjection
,
parseResult
);
}
}
else
else
{
{
...
...
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