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
bca87cbd
Commit
bca87cbd
authored
13 years ago
by
OTB Bot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
906c8501
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/Projections/otbGenericRSTransformGenericTest.cxx
+7
-7
7 additions, 7 deletions
...ing/Code/Projections/otbGenericRSTransformGenericTest.cxx
with
7 additions
and
7 deletions
Testing/Code/Projections/otbGenericRSTransformGenericTest.cxx
+
7
−
7
View file @
bca87cbd
...
...
@@ -34,11 +34,11 @@ int otbGenericRSTransformGenericTest(int argc, char * argv[])
{
if
(
argc
<
14
)
{
std
::
cerr
<<
"Usage: "
<<
argv
[
0
]
<<
"input_point_x input_point_y output_point_x output_point_y input_projection_type[IMAGE,WKT,EPSG] input_projection_source output_projection_type[IMAGE,WKT,EPSG] output_projection_source input_distance[PHYSICAL,GEO] input_threshold output_distance[PHYSICAL,GEO] ouptut_threshold elevation_flag[NOELEV,AVERAGE,DEM] elevation_source"
;
std
::
cerr
<<
"Usage: "
<<
argv
[
0
]
<<
"input_point_x input_point_y output_point_x output_point_y input_projection_type[IMAGE,
WKT,
EPSG] input_projection_source output_projection_type[IMAGE,
WKT,
EPSG] output_projection_source input_distance[PHYSICAL,
GEO] input_threshold output_distance[PHYSICAL,
GEO] ouptut_threshold elevation_flag[NOELEV,
AVERAGE,
DEM] elevation_source"
;
return
EXIT_FAILURE
;
}
PointType
refInPoint
,
refOutPoint
,
inPoint
,
outPoint
;
PointType
refInPoint
,
refOutPoint
,
inPoint
,
outPoint
;
refInPoint
[
0
]
=
atof
(
argv
[
1
]);
refInPoint
[
1
]
=
atof
(
argv
[
2
]);
refOutPoint
[
0
]
=
atof
(
argv
[
3
]);
...
...
@@ -162,7 +162,7 @@ int otbGenericRSTransformGenericTest(int argc, char * argv[])
}
else
{
std
::
cerr
<<
"Failed to read the elevation flag. Should be one of NOELEV,AVERAGE,DEM"
<<
std
::
endl
;
std
::
cerr
<<
"Failed to read the elevation flag. Should be one of NOELEV,
AVERAGE,
DEM"
<<
std
::
endl
;
return
EXIT_FAILURE
;
}
...
...
@@ -199,12 +199,12 @@ int otbGenericRSTransformGenericTest(int argc, char * argv[])
if
(
outDistType
==
"PHYSICAL"
)
{
std
::
cout
<<
"Output precision checked using physical distance."
<<
std
::
endl
;
outRes
=
physDistance
->
Evaluate
(
outPoint
,
refOutPoint
);
outRes
=
physDistance
->
Evaluate
(
outPoint
,
refOutPoint
);
}
else
if
(
outDistType
==
"GEO"
)
{
std
::
cout
<<
"Output precision checked using Haversine distance."
<<
std
::
endl
;
outRes
=
geoDistance
->
Evaluate
(
outPoint
,
refOutPoint
);
outRes
=
geoDistance
->
Evaluate
(
outPoint
,
refOutPoint
);
}
else
{
...
...
@@ -228,12 +228,12 @@ int otbGenericRSTransformGenericTest(int argc, char * argv[])
if
(
inDistType
==
"PHYSICAL"
)
{
std
::
cout
<<
"Input precision checked using physical distance."
<<
std
::
endl
;
inRes
=
physDistance
->
Evaluate
(
inPoint
,
refInPoint
);
inRes
=
physDistance
->
Evaluate
(
inPoint
,
refInPoint
);
}
else
if
(
inDistType
==
"GEO"
)
{
std
::
cout
<<
"Input precision checked using Haversine distance."
<<
std
::
endl
;
inRes
=
geoDistance
->
Evaluate
(
inPoint
,
refInPoint
);
inRes
=
geoDistance
->
Evaluate
(
inPoint
,
refInPoint
);
}
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