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
David Youssefi
otb
Commits
834e47ac
Commit
834e47ac
authored
15 years ago
by
Julien Michel
Browse files
Options
Downloads
Plain Diff
MRG
parents
d618c76d
f52cb317
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
Code/IO/otbGDALImageIO.cxx
+1
-5
1 addition, 5 deletions
Code/IO/otbGDALImageIO.cxx
Code/IO/otbImageFileWriter.txx
+3
-1
3 additions, 1 deletion
Code/IO/otbImageFileWriter.txx
with
4 additions
and
6 deletions
Code/IO/otbGDALImageIO.cxx
+
1
−
5
View file @
834e47ac
...
...
@@ -772,17 +772,13 @@ void GDALImageIO::Write(const void* buffer)
{
itkExceptionMacro
(
<<
"Error while writing image (GDAL format) "
<<
m_FileName
.
c_str
()
<<
"."
);
}
m_poBands
[
nbComponents
]
->
FlushCache
();
}
delete
[]
value
;
value
=
NULL
;
m_poDataset
->
FlushCache
();
if
(
m_poDataset
!=
NULL
)
{
GDALClose
(
m_poDataset
);
m_poDataset
=
NULL
;
}
}
/** TODO : Methode WriteImageInformation non implementee */
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbImageFileWriter.txx
+
3
−
1
View file @
834e47ac
...
...
@@ -73,7 +73,9 @@ ImageFileWriter<TInputImage>
itk::ImageIOFactory::WriteMode ) );
this->SetNumberOfStreamDivisions( static_cast<unsigned int>( CalculateNumberOfStreamDivisions() ) );
this->Superclass::Write();
//TODO: Force ImageIO desctructor. Should be fixed once GDALImageIO
//will be refactored.
this->SetImageIO(NULL);
}
/**
...
...
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