geos-0.4.1: Bindings for GEOS.

Safe HaskellNone
LanguageHaskell2010

Data.Geometry.Geos.Raw.Topology

Synopsis

Documentation

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

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

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

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

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

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

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

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

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

voronoiDiagram :: Geometry a => a -> Maybe a -> Double -> Bool -> Geos a Source #

polygonize :: Geometry a => [a] -> Geos a Source #

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

Returns a LINESTRING geometry which represents the minimum diameter of the geometry. The minimum diameter is defined to be the width of the smallest band that contains the geometry, where a band is a strip of the plane defined by two parallel lines. This can be thought of as the smallest hole that the geometry can be moved through, with a single rotation.

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

Returns a LineString whose endpoints define the minimum clearance of a geometry. If the geometry has no minimum clearance, an empty LineString will be returned.

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

Computes the minimum clearance of a geometry. The minimum clearance is the smallest amount by which a vertex could be move to produce an invalid polygon, a non-simple linestring, or a multipoint with repeated points. If a geometry has a minimum clearance of eps, it can be said that: | - No two distinct vertices in the geometry are separated by less than eps | - No vertex is closer than eps to a line segment of which it is not an endpoint. If the minimum clearance cannot be defined for a geometry (such as with a single point, or a multipoint whose points are identical, a value of Infinity will be calculated.