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
Container registry
Model registry
Operate
Environments
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
Main Repositories
otb
Merge requests
!274
BUG:
#1734
: warn users when producing an ENVI dataset with positive Y spacing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
BUG:
#1734
: warn users when producing an ENVI dataset with positive Y spacing
1734-hdr-warning-gdalio
into
develop
Overview
2
Commits
3
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Guillaume Pasero
requested to merge
1734-hdr-warning-gdalio
into
develop
6 years ago
Overview
2
Commits
3
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Warning for malformed ENVI datasets
Closes
#1734 (closed)
3
0
Merge request reports
Compare
develop
version 2
61aa7ea8
6 years ago
version 1
f86833a1
6 years ago
develop (base)
and
latest version
latest version
4486f3df
3 commits,
6 years ago
version 2
61aa7ea8
2 commits,
6 years ago
version 1
f86833a1
1 commit,
6 years ago
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
+
9
−
0
Options
@@ -1548,6 +1548,15 @@ void GDALImageIO::InternalWriteImageInformation(const void* buffer)
geoTransform
[
2
]
=
0.
;
geoTransform
[
4
]
=
0.
;
dataset
->
SetGeoTransform
(
const_cast
<
double
*>
(
geoTransform
.
GetDataPointer
()));
// Error if writing to a ENVI file with a positive Y spacing
if
(
driverShortName
==
"ENVI"
&&
geoTransform
[
5
]
>
0.
)
{
itkExceptionMacro
(
<<
"Can not write to ENVI file format with a positive Y spacing ("
<<
m_FileName
<<
")"
);
}
}
/* -------------------------------------------------------------------- */
Loading