Copyright | (c) Jann Müller 2018 |
---|---|
License | MIT |
Maintainer | Jann Müller <j.mueller.11@alumni.ucl.ac.uk> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Scales for projecting geographic coordinates onto a 2D plane.
Synopsis
- data Mercator a
- mercator :: (Point Radians, Point Radians) -> NullMeridian -> ScaleOptions Mercator (Point Radians) (Double, Double)
- newtype NullMeridian = NullMeridian {}
- greenwich :: NullMeridian
- data Albers a
- albers :: (Point Radians, Point Radians) -> Point Radians -> Radians -> Radians -> ScaleOptions Albers (Point Radians) (Double, Double)
- albers' :: (Point Radians, Point Radians) -> Point Radians -> ScaleOptions Albers (Point Radians) (Double, Double)
- data family ScaleOptions (f :: * -> *) a b :: *
Projections
Instances
Scalable Mercator (Point Radians) (Double, Double) Source # | |
type Target Mercator Source # | |
Defined in Data.H3.Geo.Projection | |
data ScaleOptions Mercator (Point Radians) (Double, Double) Source # | |
Defined in Data.H3.Geo.Projection | |
type TargetRange Mercator (Double, Double) Source # | |
Defined in Data.H3.Geo.Projection |
mercator :: (Point Radians, Point Radians) -> NullMeridian -> ScaleOptions Mercator (Point Radians) (Double, Double) Source #
Construct a mercator projection that maps the given "rectangle" of coordinates to the target rectangle
newtype NullMeridian Source #
Null meridian used for mercator projection (in degrees)
greenwich :: NullMeridian Source #
greenwich = NullMeridian 0
Instances
Scalable Albers (Point Radians) (Double, Double) Source # | |
type Target Albers Source # | |
Defined in Data.H3.Geo.Projection | |
data ScaleOptions Albers (Point Radians) (Double, Double) Source # | |
type TargetRange Albers (Double, Double) Source # | |
Defined in Data.H3.Geo.Projection |
:: (Point Radians, Point Radians) | Area that should be mapped to the target area |
-> Point Radians | Reference point |
-> Radians | First standard parallel |
-> Radians | Second standard parallel |
-> ScaleOptions Albers (Point Radians) (Double, Double) |
Albers projection (https:/en.wikipedia.orgwiki/Albers_projection). Sensible values for first and second standard parallels are 20°N50°N or 15°N45°N
:: (Point Radians, Point Radians) | Area that should be mapped to the target area |
-> Point Radians | Reference point |
-> ScaleOptions Albers (Point Radians) (Double, Double) |
Albers projection (https:/en.wikipedia.orgwiki/Albers_projection) using 15 and 45 degrees for the standard parallels.
Data constructors
data family ScaleOptions (f :: * -> *) a b :: * #
Additional parameters for the scale (other than target range).
Instances
data ScaleOptions Albers (Point Radians) (Double, Double) # | |
data ScaleOptions Mercator (Point Radians) (Double, Double) # | |
Defined in Data.H3.Geo.Projection | |
data ScaleOptions ((->) a :: * -> *) a b | |
Defined in Data.H3.Scalable |