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
deb003c0
Commit
deb003c0
authored
Jan 11, 2021
by
Julie Brossard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[WIP] Set OTB domain"
This reverts commit
89f0def0
.
parent
43bd5e16
Pipeline
#6533
failed with stages
in 123 minutes and 15 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
+3
-7
No files found.
Modules/IO/IOGDAL/src/otbGDALImageIO.cxx
View file @
deb003c0
...
...
@@ -1904,7 +1904,6 @@ void GDALImageIO::ExportMetadata()
KeywordlistToMetadata
(
kwl
,
bIdx
);
++
bIdx
;
}
}
void
GDALImageIO
::
ImportMetadata
()
...
...
@@ -1937,7 +1936,7 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
if
(
kv
.
first
==
MetaData
::
MDGeomNames
.
left
.
at
(
MDGeom
::
SensorGeometry
))
{
SetMetadataValue
(
"
OTB/
MDGeomNames[MDGeom::SensorGeometry]."
,
kv
.
second
.
c_str
(),
band
);
SetMetadataValue
(
"MDGeomNames[MDGeom::SensorGeometry]."
,
kv
.
second
.
c_str
(),
band
);
}
else
if
(
kv
.
first
==
MetaData
::
MDGeomNames
.
left
.
at
(
MDGeom
::
RPC
))
{
...
...
@@ -1951,11 +1950,8 @@ void GDALImageIO::KeywordlistToMetadata(ImageMetadataBase::Keywordlist kwl, int
{
// WKT projection have already been exported (see InternalWriteImageInformation)
}
else
{
std
::
string
domain
=
"OTB"
;
std
::
string
path
=
domain
+
"/"
+
kv
.
first
;
SetMetadataValue
(
path
.
c_str
(),
kv
.
second
.
c_str
(),
band
);
}
else
SetMetadataValue
(
kv
.
first
.
c_str
(),
kv
.
second
.
c_str
(),
band
);
}
}
...
...
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