Safe Haskell | None |
---|---|
Language | Haskell2010 |
- envelope :: Geometry a => a -> Geos a
- intersection :: Geometry a => a -> a -> Geos a
- convexHull :: Geometry a => a -> Geos a
- difference :: Geometry a => a -> a -> Geos a
- symmetricDifference :: Geometry a => a -> a -> Geos a
- boundary :: Geometry a => a -> Geos a
- union :: Geometry a => a -> a -> Geos a
- unaryUnion :: Geometry a => a -> Geos a
- pointOnSurface :: Geometry a => a -> Geos a
- centroid :: Geometry a => a -> Geos a
- node :: Geometry a => a -> Geos a
- delaunayTriangulation :: Geometry a => a -> Double -> Bool -> Geos a
- voronoiDiagram :: Geometry a => a -> Maybe a -> Double -> Bool -> Geos a
- polygonize :: Geometry a => [a] -> Geos a
- minimumRotatedRectangle :: Geometry a => a -> Geos a
- minimumWidth :: Geometry a => a -> Geos a
- minimumClearanceLine :: Geometry a => a -> Geos a
- minimumClearance :: Geometry a => a -> Geos Double
Documentation
intersection :: Geometry a => a -> a -> Geos a Source #
convexHull :: Geometry a => a -> Geos a Source #
difference :: Geometry a => a -> a -> Geos a Source #
symmetricDifference :: Geometry a => a -> a -> Geos a Source #
unaryUnion :: Geometry a => a -> Geos a Source #
pointOnSurface :: 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.
polygonize :: Geometry a => [a] -> Geos a Source #
minimumRotatedRectangle :: 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.