| Copyright | (c) 2018 Cedric Liegeois |
|---|---|
| License | BSD3 |
| Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Geo.Jord.Transform
Description
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.
Minimal complete definition
Methods
Arguments
| :: a | |
| -> AngularPosition NVector | position to |
Arguments
| :: AngularPosition NVector | |
| -> a |
|
Instances
| NTransform LatLong Source # | |
Defined in Data.Geo.Jord.Transform | |
| NTransform NVector Source # | |
Defined in Data.Geo.Jord.Transform | |
| NTransform (AngularPosition LatLong) Source # | |
Defined in Data.Geo.Jord.Transform Methods toNVector :: AngularPosition LatLong -> AngularPosition NVector Source # fromNVector :: AngularPosition NVector -> AngularPosition LatLong Source # | |
| NTransform (AngularPosition NVector) Source # |
|
Defined in Data.Geo.Jord.Transform Methods toNVector :: AngularPosition NVector -> AngularPosition NVector Source # fromNVector :: AngularPosition NVector -> AngularPosition NVector Source # | |
class ETransform a where Source #
Transformation between EcefPosition and angular or n-vector positions.
Methods
Arguments
| :: a | |
| -> Earth | |
| -> EcefPosition | position and earth model to to |
Arguments
| :: EcefPosition | |
| -> Earth | |
| -> a |
|
Instances
| ETransform LatLong Source # | |
Defined in Data.Geo.Jord.Transform | |
| ETransform NVector Source # | |
Defined in Data.Geo.Jord.Transform | |
| ETransform EcefPosition Source # |
|
Defined in Data.Geo.Jord.Transform Methods toEcef :: EcefPosition -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> EcefPosition Source # | |
| ETransform (AngularPosition LatLong) Source # | |
Defined in Data.Geo.Jord.Transform Methods toEcef :: AngularPosition LatLong -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> AngularPosition LatLong Source # | |
| ETransform (AngularPosition NVector) Source # | |
Defined in Data.Geo.Jord.Transform Methods 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.