Copyright | (c) 2018 Cedric Liegeois |
---|---|
License | BSD3 |
Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Transformations between coordinates systems both in spherical and ellipsoidal form.
All functions are implemented using the vector-based approached described in Gade, K. (2010). A Non-singular Horizontal Position Representation
Synopsis
- class NTransform a where
- class ETransform a where
- nvectorToLatLong :: NVector -> LatLong
- latLongToNVector :: LatLong -> NVector
- ecefToNVector :: EcefPosition -> Earth -> AngularPosition NVector
- nvectorToEcef :: AngularPosition NVector -> Earth -> EcefPosition
- geodeticHeight :: EcefPosition -> Earth -> Length
Documentation
class NTransform a where Source #
Transformation between positions and AngularPosition
of NVector
.
:: a | |
-> AngularPosition NVector | position to |
:: AngularPosition NVector | |
-> a |
|
Instances
NTransform LatLong Source # | |
Defined in Data.Geo.Jord.Transformation | |
NTransform NVector Source # | |
Defined in Data.Geo.Jord.Transformation | |
NTransform (AngularPosition LatLong) Source # | |
NTransform (AngularPosition NVector) Source # |
|
class ETransform a where Source #
Transformation between EcefPosition
and angular or n-vector positions.
:: a | |
-> Earth | |
-> EcefPosition | position and earth model to to |
:: EcefPosition | |
-> Earth | |
-> a |
|
Instances
ETransform LatLong Source # | |
Defined in Data.Geo.Jord.Transformation | |
ETransform NVector Source # | |
Defined in Data.Geo.Jord.Transformation | |
ETransform EcefPosition Source # |
|
Defined in Data.Geo.Jord.Transformation toEcef :: EcefPosition -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> EcefPosition Source # | |
ETransform (AngularPosition LatLong) Source # | |
Defined in Data.Geo.Jord.Transformation toEcef :: AngularPosition LatLong -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> AngularPosition LatLong Source # | |
ETransform (AngularPosition NVector) Source # | |
Defined in Data.Geo.Jord.Transformation toEcef :: AngularPosition NVector -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> AngularPosition NVector Source # |
nvectorToLatLong :: NVector -> LatLong Source #
latLongToNVector :: LatLong -> NVector Source #
latLongToNVector ll
transforms LatLong
ll
to an equivalent NVector
.
See also fromNVector
.
ecefToNVector :: EcefPosition -> Earth -> AngularPosition NVector Source #
ecefToNVector p e
transforms EcefPosition
p
to an equivalent NVector
and geodetic height
using earth model e
.
See also fromEcef
nvectorToEcef :: AngularPosition NVector -> Earth -> EcefPosition Source #
nvectorToEcef (n, h) e
transforms NVector
n
and geodetic height h
to an equivalent EcefPosition
using earth model e
.
See also toEcef
geodeticHeight :: EcefPosition -> Earth -> Length Source #
geodeticHeight p e
computes the geodetic height of EcefPosition
p
using earth model e
.
The geodetic height (or ellipsoidal height) is not the mean sea level (MSL) height.