Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Projection = Projection {
- projectionForward :: !(LonLat -> XYCoord)
- projectionInverse :: !(XYCoord -> LonLat)
- data XYCoord = XYCoord !Double !Double
- data LonLat = LonLat !Double !Double
- project :: Image PixelRGBA8 -> Projection -> Image PixelRGBA8
- interpP :: Image PixelRGBA8 -> Projection -> Projection -> Double -> Image PixelRGBA8
- mergeP :: Projection -> Projection -> Double -> Projection
- isValidP :: Projection -> Bool
- scaleP :: Double -> Double -> Projection -> Projection
- flipYAxisP :: Projection -> Projection
- moveBottomP :: Double -> Projection -> Projection
- moveTopP :: Double -> Projection -> Projection
- equirectangularP :: Projection
- mercatorP :: Projection
- mollweideP :: Projection
- hammerP :: Projection
- lambertP :: Projection
- bottomleyP :: Double -> Projection
- sinusoidalP :: Projection
- wernerP :: Projection
- bonneP :: Double -> Projection
- orthoP :: LonLat -> Projection
- cassiniP :: Projection
- augustP :: Projection
- collignonP :: Projection
- eckert1P :: Projection
- eckert3P :: Projection
- eckert5P :: Projection
- faheyP :: Projection
- foucautP :: Projection
- lagrangeP :: Projection
- drawFeatureCollection :: GeoFeatureCollection a -> (a -> SVG -> SVG) -> SVG
- loadFeatureCollection :: FromJSON a => FilePath -> (a -> SVG -> SVG) -> SVG
- applyProjection :: Projection -> SVG -> SVG
- applyProjection' :: Double -> Projection -> SVG -> SVG
- renderGeometry :: GeospatialGeometry -> SVG
Documentation
data Projection Source #
Projection | |
|
project :: Image PixelRGBA8 -> Projection -> Image PixelRGBA8 Source #
interpP :: Image PixelRGBA8 -> Projection -> Projection -> Double -> Image PixelRGBA8 Source #
mergeP :: Projection -> Projection -> Double -> Projection Source #
isValidP :: Projection -> Bool Source #
scaleP :: Double -> Double -> Projection -> Projection Source #
flipYAxisP :: Projection -> Projection Source #
moveBottomP :: Double -> Projection -> Projection Source #
moveTopP :: Double -> Projection -> Projection Source #
Projections
hammerP :: Projection Source #
bottomleyP :: Double -> Projection Source #
wernerP :: Projection Source #
bonneP :: Double -> Projection Source #
orthoP :: LonLat -> Projection Source #
augustP :: Projection Source #
faheyP :: Projection Source #
GeoJSON helpers
drawFeatureCollection :: GeoFeatureCollection a -> (a -> SVG -> SVG) -> SVG Source #
applyProjection :: Projection -> SVG -> SVG Source #
applyProjection' :: Double -> Projection -> SVG -> SVG Source #