Maintainer | pfrance@gmail.com |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Functions to compute the buffer of a geometry, for both positive and negative buffer distances.
In GIS, the positive (or negative) buffer of a geometry is defined as the Minkowski sum (or difference) of the geometry with a circle with radius equal to the absolute value of the buffer distance. In the CAD/CAM world buffers are known as offset curves. In morphological analysis the operation of positive and negative buffering is referred to as erosion and dilation.
The buffer operation always returns a polygonal result. The negative or zero-distance buffer of lines and points is always an empty Polygon.
Since true buffer curves may contain circular arcs, computed buffer polygons can only be approximations to the true geometry. The user can control the accuracy of the curve approximation by specifying the number of linear segments with which to approximate a curve.
Synopsis
- buffer :: Geometry a -> Double -> BufferParams -> Some Geometry
- defaultBufferParams :: BufferParams
- data BufferParams = BufferParams {}
- data BufferJoinStyle
- data BufferCapStyle
Documentation
buffer :: Geometry a -> Double -> BufferParams -> Some Geometry Source #
Returns a Geometry that represents all points whose distance from this geometry is less than or equal to the given width.
data BufferParams Source #
BufferParams | |
|