hgis-0.1.3.6: Package and command-line for GIS with Haskell

Safe HaskellNone
LanguageHaskell2010

GIS.Math.Spherical

Description

Utilities to compute area, perimeterPolygon, etc. on the surface of a sphere.

Synopsis

Documentation

shittyCentroid :: Polygon -> Point Source #

averages the coördinates of a polygon, returning a point.

avg :: (RealFrac a, Foldable t) => t a -> a Source #

Average over a foldable container

areaTriangle :: Point -> Point -> Point -> Double Source #

Compute the area of a triangle using LHuilliers formula

relativeCompactness :: Polygon -> Double Source #

Relative compactness, i.e. compactness divided by the compactness of a Euclidean circle

compactness1 :: Polygon -> Double Source #

Take the area of the polygon and divide by the perimeter squared. This is a dimensionless measurement.

areaConvex :: Polygon -> Double Source #

Compute the area of a convex polygon on the surface of a sphere.

areaPolygon :: Polygon -> Double Source #

Uses areal projection; then finds area of the polygon. Result is in km^2

totalPerimeter :: [Polygon] -> Double Source #

Given a list of polygons, return the total area.

areaPolyRectangular :: Polygon -> Double Source #

Find the area of a polygon with rectangular coördinates given.

distance :: (Double, Double) -> (Double, Double) -> Double Source #

Distance in kilometers between two points given in degrees.

centralAngle :: (Double, Double) -> (Double, Double) -> Double Source #

Compute central angle from points given in radians