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
e5269c36
Commit
e5269c36
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: use the value in the configuration file to initialize the dem directory and the geoid file
parent
2bce7478
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/ApplicationEngine/otbWrapperElevationParametersHandler.cxx
+3
-2
3 additions, 2 deletions
...pplicationEngine/otbWrapperElevationParametersHandler.cxx
Code/ApplicationEngine/otbWrapperElevationParametersHandler.h
+1
-1
1 addition, 1 deletion
.../ApplicationEngine/otbWrapperElevationParametersHandler.h
with
4 additions
and
3 deletions
Code/ApplicationEngine/otbWrapperElevationParametersHandler.cxx
+
3
−
2
View file @
e5269c36
...
...
@@ -37,7 +37,7 @@ void ElevationParametersHandler::AddElevationParameters(Application::Pointer app
app
->
AddParameter
(
ParameterType_Directory
,
oss
.
str
(),
"DEM directory"
);
app
->
SetParameterDescription
(
oss
.
str
(),
"This parameter allows to select a directory containing Digital Elevation Model tiles"
);
app
->
MandatoryOff
(
oss
.
str
());
app
->
SetParameterString
(
oss
.
str
(),
otb
::
ConfigurationFile
::
GetInstance
()
->
GetDEMDirectory
());
// Average elevation
oss
.
str
(
""
);
...
...
@@ -61,6 +61,7 @@ void ElevationParametersHandler::AddElevationParameters(Application::Pointer app
oss
<<
".value"
;
app
->
AddParameter
(
ParameterType_Filename
,
oss
.
str
(),
"Geoid File"
);
app
->
SetParameterDescription
(
oss
.
str
(),
"Use a geoid grid to get the height above the ellipsoid used"
);
app
->
SetParameterString
(
oss
.
str
(),
otb
::
ConfigurationFile
::
GetInstance
()
->
GetGeoidFile
());
// Set the default value
app
->
SetParameterString
(
key
,
"dem"
);
...
...
@@ -106,7 +107,7 @@ ElevationParametersHandler::GetGeoidFile(const Application::Pointer app, const s
*
* Get the Elevation mode choosen by the user
*/
const
ElevationType
ElevationType
ElevationParametersHandler
::
GetElevationType
(
const
Application
::
Pointer
app
,
const
std
::
string
&
key
)
{
switch
(
app
->
GetParameterInt
(
key
))
...
...
This diff is collapsed.
Click to expand it.
Code/ApplicationEngine/otbWrapperElevationParametersHandler.h
+
1
−
1
View file @
e5269c36
...
...
@@ -52,7 +52,7 @@ public:
* projection picked up by the user
*
*/
static
const
ElevationType
GetElevationType
(
const
Application
::
Pointer
app
,
const
std
::
string
&
key
);
static
ElevationType
GetElevationType
(
const
Application
::
Pointer
app
,
const
std
::
string
&
key
);
/** Method for getting the value of the elevation mode selected */
static
const
std
::
string
GetDEMDirectory
(
const
Application
::
Pointer
app
,
const
std
::
string
&
key
);
...
...
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