Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
d7648e39
Commit
d7648e39
authored
Feb 02, 2021
by
Julien Osman
Browse files
FIX: Add a 0.5 offset to RPC model for Pleiades
parent
20c1ed52
Pipeline
#6688
failed with stages
in 85 minutes and 5 seconds
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Data/Input/pleiades/maido.geom
View file @
d7648e39
...
...
@@ -80,7 +80,7 @@ line_num_coeff_16: 4.81457792658454e-05
line_num_coeff_17
:
2.88619029525836e-07
line_num_coeff_18
:
-
3.21946619769831e-07
line_num_coeff_19
:
5.19261801580877e-07
line_off
:
3628
.
5
line_off
:
3628
line_scale
:
3628
.
5
ll_lat
:
-
21
.
1761546496637
ll_lon
:
55
.
3361820080128
...
...
@@ -141,7 +141,7 @@ samp_num_coeff_16: -7.36857981217554e-07
samp_num_coeff_17
:
6.99721596099962e-06
samp_num_coeff_18
:
2.68058434585531e-05
samp_num_coeff_19
:
2.22039097455653e-06
samp_off
:
217
8
samp_off
:
217
7
.
5
samp_scale
:
5187
sensor
:
PHR
1
A
support_data
.
across_track_incidence_angle
:
"""15.5053146594264 15.3626255402908 15.2247250482884 """
...
...
Modules/Core/Metadata/include/otbImageMetadataInterfaceBase.h
View file @
d7648e39
...
...
@@ -245,7 +245,7 @@ public:
const
std
::
string
&
Fetch
(
std
::
string
key
,
const
MetadataSupplierInterface
&
mds
,
const
char
*
path
,
int
band
=-
1
);
const
boost
::
any
&
FetchRPC
(
const
MetadataSupplierInterface
&
mds
);
const
boost
::
any
&
FetchRPC
(
const
MetadataSupplierInterface
&
mds
,
const
double
lineOffset
=
0.0
,
const
double
sampleOffset
=
0.0
);
/** Reads into the MetaDataDictionary to find an OSSIM ImageKeywordlist,
* then translate it into ImageMetadata.
...
...
Modules/Core/Metadata/src/otbImageMetadataInterfaceBase.cxx
View file @
d7648e39
...
...
@@ -689,8 +689,8 @@ ImageMetadataInterfaceBase::Fetch(
return
m_Imd
[
key
];
}
const
boost
::
any
&
ImageMetadataInterfaceBase
::
FetchRPC
(
const
MetadataSupplierInterface
&
mds
)
const
boost
::
any
&
ImageMetadataInterfaceBase
::
FetchRPC
(
const
MetadataSupplierInterface
&
mds
,
const
double
lineOffset
,
const
double
sampleOffset
)
{
Projection
::
RPCParam
rpcStruct
;
...
...
@@ -723,8 +723,8 @@ const boost::any& ImageMetadataInterfaceBase::FetchRPC(
}
};
rpcStruct
.
LineOffset
=
GetMetadataWithoutUnit
(
"RPC/LINE_OFF"
,
mds
);
rpcStruct
.
SampleOffset
=
GetMetadataWithoutUnit
(
"RPC/SAMP_OFF"
,
mds
);
rpcStruct
.
LineOffset
=
GetMetadataWithoutUnit
(
"RPC/LINE_OFF"
,
mds
)
+
lineOffset
;
rpcStruct
.
SampleOffset
=
GetMetadataWithoutUnit
(
"RPC/SAMP_OFF"
,
mds
)
+
sampleOffset
;
rpcStruct
.
LatOffset
=
GetMetadataWithoutUnit
(
"RPC/LAT_OFF"
,
mds
);
rpcStruct
.
LonOffset
=
GetMetadataWithoutUnit
(
"RPC/LONG_OFF"
,
mds
);
rpcStruct
.
HeightOffset
=
GetMetadataWithoutUnit
(
"RPC/HEIGHT_OFF"
,
mds
);
...
...
Modules/Core/Metadata/src/otbPleiadesImageMetadataInterface.cxx
View file @
d7648e39
...
...
@@ -2232,7 +2232,7 @@ void PleiadesImageMetadataInterface::Parse(const MetadataSupplierInterface & mds
// fill RPC model
if
(
m_Imd
[
MDStr
::
GeometricLevel
]
==
"SENSOR"
)
{
FetchRPC
(
mds
);
FetchRPC
(
mds
,
-
0.5
,
-
0.5
);
}
}
// Geom case
...
...
Write
Preview
Supports
Markdown
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