geos-0.4.1: 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 Geom Source #

A Geom is a wrapper around the C data structure that has finalizers associated with it.

Constructors

Geom 

newtype GeomConst Source #

A GeomConst is a wrapper around the C data structure that does *not* have finalizers attached to it. A typical use case for GemoConst is when retrieving a child geometry from a composite geometry. If the parent geometry has finalizers associated with it, we can not separately attempt to deallocate memory occupied by the child geometry.

Constructors

GeomConst 

setSRID :: Geometry a => Maybe Int -> a -> Geos a Source #

createPoint :: Geometry b => CoordSeqConst -> Geos b Source #

The following require CoordSeqConst as arguments since coordinate sequences become owned by the Geometry object.

createPolygon :: Geometry a => GeomConst -> [GeomConst] -> Geos a Source #

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

project :: Geometry a => a -> a -> Geos Double Source #

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 a => a -> Double -> Geos Geom Source #

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

disjoint :: Geometry a => a -> a -> Geos Bool Source #

touches :: Geometry a => a -> a -> Geos Bool Source #

intersects :: Geometry a => a -> a -> Geos Bool Source #

crosses :: Geometry a => a -> a -> Geos Bool Source #

within :: Geometry a => a -> a -> Geos Bool Source #

contains :: Geometry a => a -> a -> Geos Bool Source #

overlaps :: Geometry a => a -> a -> Geos Bool Source #

equals :: Geometry a => a -> a -> Geos Bool Source #

equalsExact :: Geometry a => a -> a -> Double -> Geos Bool Source #

covers :: Geometry a => a -> a -> Geos Bool Source #

coveredBy :: Geometry a => a -> a -> Geos Bool Source #

distance :: Geometry a => a -> a -> Geos Double Source #

normalize :: Geometry a => a -> Geos a Source #