Search Results for

    Show / Hide Table of Contents

    Class VariableBuffer

    Creates a buffer polygon with a varying buffer distance at each vertex along a line. Vertex distances may be zero.

    Only single linestring is supported as input, since buffer widths generally need to be specified individually for each line.
    Inheritance
    object
    VariableBuffer
    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 VariableBuffer

    Constructors

    | Edit this page View Source

    VariableBuffer(Geometry, double[])

    Creates a generator for a variable-distance line buffer.

    Declaration
    public VariableBuffer(Geometry line, double[] distance)
    Parameters
    Type Name Description
    Geometry line

    The linestring to buffer

    double[] distance

    The buffer distance for each vertex of the line

    Methods

    | Edit this page View Source

    Buffer(Geometry, double, double)

    Creates a buffer polygon along a line with the buffer distance interpolated between a start distance and an end distance.

    Declaration
    public static Geometry Buffer(Geometry line, double startDistance, double endDistance)
    Parameters
    Type Name Description
    Geometry line

    The line to buffer

    double startDistance

    The buffer width at the start of the line

    double endDistance

    The buffer width at the end of the line

    Returns
    Type Description
    Geometry

    The variable-distance buffer polygon

    | Edit this page View Source

    Buffer(Geometry, double, double, double)

    Creates a buffer polygon along a line with the buffer distance interpolated between a start distance, a middle distance and an end distance. The middle distance is attained at the vertex at or just past the half-length of the line. For smooth buffering of a LinearRing (or the rings of a Polygon) the start distance and end distance should be equal.

    Declaration
    public static Geometry Buffer(Geometry line, double startDistance, double midDistance, double endDistance)
    Parameters
    Type Name Description
    Geometry line

    The line to buffer

    double startDistance

    The buffer width at the start of the line

    double midDistance

    The buffer width at the middle vertex of the line

    double endDistance

    The buffer width at the end of the line

    Returns
    Type Description
    Geometry

    The variable-distance buffer polygon

    | Edit this page View Source

    Buffer(Geometry, double[])

    Creates a buffer polygon along a line with the distance specified at each vertex.

    Declaration
    public static Geometry Buffer(Geometry line, double[] distance)
    Parameters
    Type Name Description
    Geometry line

    The line to buffer

    double[] distance

    The buffer distance for each vertex of the line

    Returns
    Type Description
    Geometry

    The variable-width buffer polygon

    | Edit this page View Source

    GetResult()

    Computes the variable buffer polygon.

    Declaration
    public Geometry GetResult()
    Returns
    Type Description
    Geometry

    A buffer polygon

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