Search Results for

    Show / Hide Table of Contents

    Class 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.

    Note: this may not produce correct results if the input contains repeated or invalid points. Repeated points should be removed before calling. RemoveRepeatedOrInvalidPoints(Coordinate[]).
    Inheritance
    object
    OffsetCurveBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation.Buffer
    Assembly: NetTopologySuite.dll
    Syntax
    public class OffsetCurveBuilder

    Constructors

    | Edit this page View Source

    OffsetCurveBuilder(PrecisionModel, ElevationModel, BufferParameters)

    Declaration
    public OffsetCurveBuilder(PrecisionModel precisionModel, ElevationModel em, BufferParameters bufParams)
    Parameters
    Type Name Description
    PrecisionModel precisionModel
    ElevationModel em
    BufferParameters bufParams
    | Edit this page View Source

    OffsetCurveBuilder(PrecisionModel, BufferParameters)

    Declaration
    public OffsetCurveBuilder(PrecisionModel precisionModel, BufferParameters bufParams)
    Parameters
    Type Name Description
    PrecisionModel precisionModel
    BufferParameters bufParams

    Properties

    | Edit this page View Source

    BufferParameters

    Gets the buffer parameters being used to generate the curve.

    Declaration
    public BufferParameters BufferParameters { get; }
    Property Value
    Type Description
    BufferParameters

    Methods

    | Edit this page View Source

    GetLineCurve(Coordinate[], double)

    This method handles single points as well as LineStrings. LineStrings are assumed not to be closed (the function will not fail for closed lines, but will generate superfluous line caps).

    Declaration
    public Coordinate[] GetLineCurve(Coordinate[] inputPts, double distance)
    Parameters
    Type Name Description
    Coordinate[] inputPts

    The vertices of the line to offset

    double distance

    The offset distance

    Returns
    Type Description
    Coordinate[]

    A Coordinate array representing the curve
    or null if the curve is empty

    | Edit this page View Source

    GetOffsetCurve(Coordinate[], double)

    Declaration
    public Coordinate[] GetOffsetCurve(Coordinate[] inputPts, double distance)
    Parameters
    Type Name Description
    Coordinate[] inputPts
    double distance
    Returns
    Type Description
    Coordinate[]
    | Edit this page View Source

    GetRingCurve(Coordinate[], Position, double)

    This method handles the degenerate cases of single points and lines, as well as rings.

    Declaration
    public Coordinate[] GetRingCurve(Coordinate[] inputPts, Position side, double distance)
    Parameters
    Type Name Description
    Coordinate[] inputPts
    Position side
    double distance
    Returns
    Type Description
    Coordinate[]

    A Coordinate array representing the curve
    or null if the curve is empty

    | Edit this page View Source

    GetRingCurve(Coordinate[], Positions, double)

    This method handles the degenerate cases of single points and lines, as well as rings.

    Declaration
    [Obsolete("Use GetRingCurve(Coordinate[], Geometries.Position, double)")]
    public Coordinate[] GetRingCurve(Coordinate[] inputPts, Positions side, double distance)
    Parameters
    Type Name Description
    Coordinate[] inputPts
    Positions side
    double distance
    Returns
    Type Description
    Coordinate[]

    A Coordinate array representing the curve
    or null if the curve is empty

    | Edit this page View Source

    IsLineOffsetEmpty(double)

    Tests whether the offset curve for line or point geometries at the given offset distance is empty (does not exist). This is the case if:

    • the distance is zero
    • the distance is negative, except for the case of singled-sided buffers
    Declaration
    public bool IsLineOffsetEmpty(double distance)
    Parameters
    Type Name Description
    double distance

    The offset curve distance

    Returns
    Type Description
    bool

    true if the offset curve is empty

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX