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
48f8f64e
Commit
48f8f64e
authored
Dec 03, 2021
by
Cédric Traizet
Browse files
DOC: document WorldToECEF and ECEFToWorld
parent
2b5a31d4
Pipeline
#9256
canceled with stages
in 3 minutes and 28 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Transform/include/otbGeocentricTransform.h
View file @
48f8f64e
...
...
@@ -76,7 +76,14 @@ private:
namespace
Projection
{
struct
Ellipsoid
/** \struct WGS84Ellipsoid
*
* \brief a structure holding the ellpsoid parameters for WGS84
*
* \ingroup OTBTransform
*
*/
struct
WGS84Ellipsoid
{
static
constexpr
double
a
=
6378137.
;
static
constexpr
double
b
=
6356752.314245
;
...
...
@@ -84,10 +91,27 @@ struct Ellipsoid
static
constexpr
double
es
=
1
-
(
b
*
b
)
/
(
a
*
a
);
};
template
<
class
TScalarType
=
double
,
class
TEllipsoid
=
Ellipsoid
>
/** \fn WorldToEcef
*
* \brief convert from geographic (lon, lat, height) to ECEF coordinates (x, y, z)
*
* \param[in] ecefPoint : the input geographic point
*
* \ingroup OTBTransform
*
*/
template
<
class
TScalarType
=
double
,
class
TEllipsoid
=
WGS84Ellipsoid
>
itk
::
Point
<
TScalarType
,
3
>
WorldToEcef
(
const
itk
::
Point
<
TScalarType
,
3
>
&
worldPoint
);
template
<
class
TScalarType
=
double
,
class
TEllipsoid
=
Ellipsoid
>
/** \fn EcefToWorld
*
* \brief convert from ECEF (x, y, z) to geographic coordinates (lon, lat, height)
*
* \param[in] ecefPoint : the input ECEF point
*
* \ingroup OTBTransform
*/
template
<
class
TScalarType
=
double
,
class
TEllipsoid
=
WGS84Ellipsoid
>
itk
::
Point
<
TScalarType
,
3
>
EcefToWorld
(
const
itk
::
Point
<
TScalarType
,
3
>
&
ecefPoint
);
}
// namespace Projection
...
...
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