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
Julien Cabieces
otb
Commits
7fd8703d
Commit
7fd8703d
authored
9 years ago
by
Stéphane Albert
Browse files
Options
Downloads
Patches
Plain Diff
ENH: MANTIS-1071 Added otb::DEMHandler::ClearDEMs() method.
parent
27f75a1f
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
Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h
+5
-0
5 additions, 0 deletions
Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h
Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx
+13
-2
13 additions, 2 deletions
Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx
with
18 additions
and
2 deletions
Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h
+
5
−
0
View file @
7fd8703d
...
@@ -132,6 +132,11 @@ public:
...
@@ -132,6 +132,11 @@ public:
/** Get Goid file */
/** Get Goid file */
std
::
string
GetGeoidFile
()
const
;
std
::
string
GetGeoidFile
()
const
;
/**
* Removes all the ossimElevationDatabases from the ossimElevManager.
*/
void
ClearDEMs
();
protected:
protected:
DEMHandler
();
DEMHandler
();
virtual
~
DEMHandler
()
{}
virtual
~
DEMHandler
()
{}
...
...
This diff is collapsed.
Click to expand it.
Modules/Adapters/OSSIMAdapters/src/otbDEMHandler.cxx
+
13
−
2
View file @
7fd8703d
...
@@ -62,8 +62,7 @@ void
...
@@ -62,8 +62,7 @@ void
DEMHandler
DEMHandler
::
OpenDEMDirectory
(
const
char
*
DEMDirectory
)
::
OpenDEMDirectory
(
const
char
*
DEMDirectory
)
{
{
ossimFilename
ossimDEMDir
;
ossimFilename
ossimDEMDir
(
DEMDirectory
);
ossimDEMDir
=
ossimFilename
(
DEMDirectory
);
if
(
!
m_ElevManager
->
loadElevationPath
(
ossimDEMDir
))
if
(
!
m_ElevManager
->
loadElevationPath
(
ossimDEMDir
))
{
{
...
@@ -87,6 +86,18 @@ DEMHandler
...
@@ -87,6 +86,18 @@ DEMHandler
}
}
}
}
void
DEMHandler
::
ClearDEMs
()
{
assert
(
ossimElevManager
::
instance
()
!=
NULL
);
assert
(
m_ElevManager
!=
NULL
);
ossimElevManager
::
instance
()
->
clear
();
}
void
void
DEMHandler
DEMHandler
::
OpenDEMDirectory
(
const
std
::
string
&
DEMDirectory
)
::
OpenDEMDirectory
(
const
std
::
string
&
DEMDirectory
)
...
...
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