hgis-1.0.0.0: Library and for GIS with Haskell

Safe HaskellNone
LanguageHaskell2010

GIS.Math.Spherical

Contents

Description

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

Synopsis

Documentation

areaPolygon :: Polygon -> Double Source #

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

relativeCompactness :: Polygon -> Double Source #

Relative compactness. Dimensionless.

totalPerimeter :: [Polygon] -> Double Source #

Given a list of polygons, return the total perimeter.

Spherical geometry

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

Compute the area of a triangle using LHuilliers formula

areaConvex :: Polygon -> Double Source #

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

Internal functions

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

Distance in kilometers between two points given in degrees.