Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
ad72b73f
Commit
ad72b73f
authored
Oct 29, 2020
by
Julien Osman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Put back KeywordList in image writing process
parent
88212a44
Pipeline
#6039
failed with stages
in 136 minutes and 33 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
+20
-0
Modules/IO/ImageIO/include/otbImageFileWriter.hxx
Modules/IO/ImageIO/include/otbImageFileWriter.hxx
+1
-0
No files found.
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
View file @
ad72b73f
...
@@ -1538,6 +1538,26 @@ void GDALImageIO::InternalWriteImageInformation(const void* buffer)
...
@@ -1538,6 +1538,26 @@ void GDALImageIO::InternalWriteImageInformation(const void* buffer)
CSLDestroy
(
rpcMetadata
);
CSLDestroy
(
rpcMetadata
);
}
}
}
}
// ToDo : remove this part. This case is here for compatibility for images
// that still use Ossim for managing the sensor model (with OSSIMKeywordList).
else
if
(
otb_kwl
.
GetSize
())
{
/* -------------------------------------------------------------------- */
/* Set the RPC coeffs (since GDAL 1.10.0) */
/* -------------------------------------------------------------------- */
if
(
m_WriteRPCTags
)
{
GDALRPCInfo
gdalRpcStruct
;
if
(
otb_kwl
.
convertToGDALRPC
(
gdalRpcStruct
))
{
otbLogMacro
(
Debug
,
<<
"Saving RPC to file ("
<<
m_FileName
<<
")"
)
char
**
rpcMetadata
=
RPCInfoToMD
(
&
gdalRpcStruct
);
dataset
->
SetMetadata
(
rpcMetadata
,
"RPC"
);
CSLDestroy
(
rpcMetadata
);
}
}
}
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */
/* Case 3: Set the GCPs */
/* Case 3: Set the GCPs */
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */
...
...
Modules/IO/ImageIO/include/otbImageFileWriter.hxx
View file @
ad72b73f
...
@@ -553,6 +553,7 @@ void ImageFileWriter<TInputImage>::GenerateOutputInformation(void)
...
@@ -553,6 +553,7 @@ void ImageFileWriter<TInputImage>::GenerateOutputInformation(void)
}
}
m_ImageIO
->
SetUseCompression
(
m_UseCompression
);
m_ImageIO
->
SetUseCompression
(
m_UseCompression
);
m_ImageIO
->
SetMetaDataDictionary
(
inputPtr
->
GetMetaDataDictionary
());
const
ImageCommons
*
img_common
=
dynamic_cast
<
const
ImageCommons
*>
(
inputPtr
.
GetPointer
());
const
ImageCommons
*
img_common
=
dynamic_cast
<
const
ImageCommons
*>
(
inputPtr
.
GetPointer
());
if
(
img_common
!=
nullptr
)
if
(
img_common
!=
nullptr
)
...
...
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