Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
24ee6411
Commit
24ee6411
authored
Jan 08, 2021
by
Cédric Traizet
Browse files
BUG: don't throw an exception in ImageToGenericRSOutputParameters if the input has sensor geometry
parent
385daf67
Pipeline
#6524
failed with stages
in 90 minutes and 54 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Transform/include/otbImageToGenericRSOutputParameters.hxx
View file @
24ee6411
...
...
@@ -48,7 +48,7 @@ void ImageToGenericRSOutputParameters<TImage>::Compute()
if
(
m_Input
.
IsNull
())
itkExceptionMacro
(
<<
"The input is null , please set a non null input image"
);
if
(
m_Input
->
Get
ProjectionRef
().
empt
y
())
if
(
!
m_Input
->
Get
ImageMetadata
().
HasSensorGeometry
()
&&
!
m_Input
->
GetImageMetadata
().
HasProjectedGeometr
y
())
itkExceptionMacro
(
<<
"No information in the metadata, please set an image with non empty metadata"
);
// First Call to UpdateTransform : Initialize with the input image
...
...
Write
Preview
Supports
Markdown
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