Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
89f0def0
Commit
89f0def0
authored
Dec 18, 2020
by
Julie Brossard
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] Set OTB domain
parent
6e85bdc9
Pipeline
#6468
passed with stages
in 77 minutes and 3 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
+7
-3
No files found.
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
View file @
89f0def0
...
...
@@ -1904,6 +1904,7 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata
(
kwl
,
bIdx
);
++
bIdx
;
}
}
void
GDALImageIO
::
ImportMetadata
()
...
...
@@ -1936,7 +1937,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
if
(
kv
.
first
==
MetaData
::
MDGeomNames
.
left
.
at
(
MDGeom
::
SensorGeometry
))
{
SetMetadataValue
(
"MDGeomNames[MDGeom::SensorGeometry]."
,
kv
.
second
.
c_str
(),
band
);
SetMetadataValue
(
"
OTB/
MDGeomNames[MDGeom::SensorGeometry]."
,
kv
.
second
.
c_str
(),
band
);
}
else
if
(
kv
.
first
==
MetaData
::
MDGeomNames
.
left
.
at
(
MDGeom
::
RPC
))
{
...
...
@@ -1950,8 +1951,11 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
// WKT projection have already been exported (see InternalWriteImageInformation)
}
else
SetMetadataValue
(
kv
.
first
.
c_str
(),
kv
.
second
.
c_str
(),
band
);
else
{
std
::
string
domain
=
"OTB"
;
std
::
string
path
=
domain
+
"/"
+
kv
.
first
;
SetMetadataValue
(
path
.
c_str
(),
kv
.
second
.
c_str
(),
band
);
}
}
}
...
...
Julie Brossard
@jbrossar
mentioned in commit
deb003c0
·
Jan 11, 2021
mentioned in commit
deb003c0
mentioned in commit deb003c0ffaa6e0be2a2058a5709dd2d40d50ae0
Toggle commit list
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