geos-0.1.0.0: Bindings for GEOS.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Geos.Raw.Geometry

Description

Light wrappers around Geos functions. Must be run within the Geos monad.

Synopsis

Documentation

newtype Geometry

Constructors

Geometry 

Instances

createPolygon :: Geometry -> [Geometry] -> Geos Geometry

The second argument is a list of geometries, | NOTE. geometries become owned by caller.

project :: Geometry -> Geometry -> Geos Double

project p g returns the distance of point p projected on g from origin of g. Geometry g must be a lineal geometry

interpolate :: Geometry -> Double -> Geos Geometry

Return the closest point to given distance within geometry. Geometry must be a LineString