Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
0cbf2395
Commit
0cbf2395
authored
Jun 19, 2012
by
Julien Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Fixing potential bug on number of layers in dataset
parent
3c078b86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapper.cxx
...UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapper.cxx
+7
-1
No files found.
Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapper.cxx
View file @
0cbf2395
...
...
@@ -411,8 +411,14 @@ void otb::ogr::DataSource::GetGlobalExtent(double & ulx,
OGREnvelope
sExtent
;
const_iterator
lit
=
this
->
begin
();
if
(
lit
==
this
->
end
())
{
itkGenericExceptionMacro
(
<<
"Cannot compute global extent because there are no layers in the DataSource"
);
}
const
OGRErr
res
=
lit
->
ogr
().
GetExtent
(
&
sExtent
,
force
);
if
(
res
!=
OGRERR_NONE
)
{
itkGenericExceptionMacro
(
<<
"Cannot retrieve extent of layer <"
...
...
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