geos-0.1.0.0: Bindings for GEOS.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Geos.Topology

Synopsis

Documentation

envelope :: Geometry a -> Some Geometry

Returns a Polygon that represents the bounding envelope of this geometry. Note that it can also return a Point if the input geometry is a point.

intersection :: Geometry a -> Geometry b -> Some Geometry

Returns a Geometry representing the points shared by both geometries.

convexHull :: Geometry a -> Some Geometry

Returns the smallest Polygon that contains all the points in the geometry.

difference :: Geometry a -> Geometry b -> Some Geometry

Returns a Geometry representing the points making up this geometry that do not make up other.

symmetricDifference :: Geometry a -> Geometry b -> Some Geometry

Returns a Geometry combining the points in this geometry not in other, and the points in other not in this geometry.

union :: Geometry a -> Geometry b -> Some Geometry

Returns a Geometry representing all the points in both geometries.

pointOnSurface :: Geometry a -> Geometry Point

Computes and returns a Point guaranteed to be on the interior of this geometry.

centroid :: Geometry a -> Some Geometry

Returns a Point object representing the geometric center of the geometry. The point is not guaranteed to be on the interior of the geometry.

delaunayTriangulation :: Geometry a -> Double -> Geometry MultiLineString

Return a Delaunay triangulation of the vertex of the given geometry g, where tol is the snapping tolerance to use.