Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
71f20dcc
Commit
71f20dcc
authored
Mar 23, 2021
by
Julien Osman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: Remove hard coded path
parent
5b0d5d36
Pipeline
#7236
failed with stages
in 91 minutes and 34 seconds
Changes
3
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4241 additions
and
3 deletions
+4241
-3
Data/Input/radarsat2/product.xml
Data/Input/radarsat2/product.xml
+4238
-0
Data/Input/radarsat2/radarsat2-1.geom
Data/Input/radarsat2/radarsat2-1.geom
+0
-1
Modules/Core/Metadata/src/otbRadarsat2ImageMetadataInterface.cxx
.../Core/Metadata/src/otbRadarsat2ImageMetadataInterface.cxx
+3
-2
No files found.
Data/Input/radarsat2/product.xml
0 → 100644
View file @
71f20dcc
This diff is collapsed.
Click to expand it.
Data/Input/radarsat2/radarsat2-1.geom
View file @
71f20dcc
...
...
@@ -40,7 +40,6 @@ platform_position[4]ephemeris.position: (-211215.549626422,-4807103.54584084,53
platform_position
[
4
]
ephemeris
.
velocity
:
(
-
2242
.
74289199728
,
-
5301
.
198083286
,
-
4877
.
50945094166
)
platform_positions_count
:
5
product_georeferenced_flag
:
false
product_xml_filename
:
/
home
/
julien
/
Projects
/
orfeo
-
toolbox
/
misc
/
OTB
-
LargeInput
/
RADARSAT2
/
ALTONA
/
Fine_Quad
-
Pol_Dataset
/
PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona
/
product
.
xml
rect
:
0
0
2821
12952
ref_point
.
col
:
0
ref_point
.
distance
:
890636
.
095102868
...
...
Modules/Core/Metadata/src/otbRadarsat2ImageMetadataInterface.cxx
View file @
71f20dcc
...
...
@@ -30,6 +30,7 @@
// useful constants
#include <otbMath.h>
#include "otbXMLMetadataSupplier.h"
#include <boost/filesystem.hpp>
namespace
otb
{
...
...
@@ -305,10 +306,10 @@ void Radarsat2ImageMetadataInterface::ParseGeom(const MetadataSupplierInterface
m_Imd
.
Add
(
MDStr
::
SensorID
,
"SAR"
);
// Product file
std
::
string
ProductFilePath
=
mds
.
GetAs
<
std
::
string
>
(
""
,
"product_xml_filename"
);
auto
ProductFilePath
=
boost
::
filesystem
::
path
(
mds
.
GetResourceFile
()
);
if
(
!
ProductFilePath
.
empty
())
{
XMLMetadataSupplier
ProductMS
(
ProductFilePath
);
XMLMetadataSupplier
ProductMS
(
(
ProductFilePath
.
remove_filename
()
/=
"product.xml"
).
string
()
);
m_Imd
.
Add
(
MDStr
::
Mission
,
ProductMS
.
GetAs
<
std
::
string
>
(
"product.sourceAttributes.satellite"
));
m_Imd
.
Add
(
MDNum
::
NumberOfLines
,
ProductMS
.
GetAs
<
int
>
(
"product.imageAttributes.rasterAttributes.numberOfLines"
));
m_Imd
.
Add
(
MDNum
::
NumberOfColumns
,
ProductMS
.
GetAs
<
int
>
(
"product.imageAttributes.rasterAttributes.numberOfSamplesPerLine"
));
...
...
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