Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
90aa8afb
Commit
90aa8afb
authored
Apr 28, 2015
by
Christophe Palmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: otbSensorModemAdapater.cxx, added some null pointer checkings
parent
619b808c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Modules/Adapters/OSSIMAdapters/src/otbSensorModelAdapter.cxx
Modules/Adapters/OSSIMAdapters/src/otbSensorModelAdapter.cxx
+5
-1
No files found.
Modules/Adapters/OSSIMAdapters/src/otbSensorModelAdapter.cxx
View file @
90aa8afb
...
...
@@ -208,6 +208,8 @@ double SensorModelAdapter::Optimize()
// Call optimize fit
precision
=
sensorModel
->
optimizeFit
(
*
m_TiePoints
);
}
else
itkExceptionMacro
(
<<
"Optimize(): error, dynamic_cast from ossimProjection* to ossimSensorModel* failed."
);
}
// Return the precision
...
...
@@ -238,11 +240,13 @@ bool SensorModelAdapter::WriteGeomFile(const std::string & outfile)
// try to retrieve a sensor model
ossimSensorModel
*
sensorModel
=
NULL
;
sensorModel
=
dynamic_cast
<
ossimSensorModel
*>
(
m_SensorModel
);
if
(
sensorModel
==
NULL
)
itkExceptionMacro
(
<<
"WriteGeomFile(): error, dynamic_cast from ossimProjection* to ossimSensorModel* failed."
);
ossimKeywordlist
geom
;
bool
success
=
sensorModel
->
saveState
(
geom
);
if
(
success
)
{
return
geom
.
write
(
outfile
.
c_str
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment