Namespace NetTopologySuite.Operation.Buffer
Provides classes for computing buffers of geometries
Classes
BufferCurveSetBuilder
Creates all the raw offset curves for a buffer of a Geometry
.
Raw curves need to be noded together and polygonized to form the final buffer area.
BufferInputLineSimplifier
Simplifies a buffer input line to remove concavities with shallow depth.
BufferOp
Computes the buffer of a geometry, for both positive and negative buffer distances.
BufferParameters
A value class containing the parameters which specify how a buffer should be constructed.
The parameters allow control over:
- Quadrant segments (accuracy of approximation for circular arcs)
- End Cap style
- Join style
- Mitre limit
- whether the buffer is single-sided
OffsetCurve
Computes an offset curve from a geometry. The offset curve is a linear geometry which is offset a specified distance from the input. If the offset distance is positive the curve lies on the left side of the input; if it is negative the curve is on the right side.
- For a LineString the offset curve is a line.
- For a Point the offset curve is an empty LineString.
- For a Polygon the offset curve is the boundary of the polygon buffer (which may be a MultiLineString).
- For a collection the output is a MultiLineString containing the element offset curves.
The offset curve is computed as a single contiguous section of the geometry buffer boundary. In some geometric situations this definition is ill-defined. This algorithm provides a "best-effort" interpretation. In particular:
- For self-intersecting lines, the buffer boundary includes offset lines for both left and right sides of the input line. Only a single contiguous portion on the specified side is returned.
- If the offset corresponds to buffer holes, only the largest hole is used.
OffsetCurveBuilder
Computes the raw offset curve for a single Geometry component (ring, line or point). A raw offset curve line is not noded - it may contain self-intersections (and usually will).g The final buffer polygon is computed by forming a topological graph of all the noded raw curves and tracing outside contours. The points in the raw curve are rounded to a given PrecisionModel.
OffsetCurveSetBuilder
Creates all the raw offset curves for a buffer of a Geometry
.
Raw curves need to be noded together and polygonized to form the final buffer area.
OffsetCurveVertexList
A list of the vertices in a constructed offset curve.
OldOffsetCurveBuilder
Computes the raw offset curve for a single Geometry component (ring, line or point).
VariableBuffer
Creates a buffer polygon with a varying buffer distance at each vertex along a line.
Only single lines are supported as input, since buffer widths generally need to be specified individually for each line.
Enums
EndCapStyle
End cap style constants
JoinStyle
Join style constants