Search Results for

    Show / Hide Table of Contents

    Class BoundaryOp

    Computes the boundary of a Geometry. Allows specifying the IBoundaryNodeRule to be used. This operation will always return a Geometry of the appropriate dimension for the boundary (even if the input geometry is empty). The boundary of zero-dimensional geometries (Points) is always the empty GeometryCollection.

    Inheritance
    object
    BoundaryOp
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation
    Assembly: NetTopologySuite.dll
    Syntax
    public class BoundaryOp

    Constructors

    | Edit this page View Source

    BoundaryOp(Geometry)

    Initializes a new instance of the BoundaryOp class for the given geometry.

    Declaration
    public BoundaryOp(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The input geometry.

    | Edit this page View Source

    BoundaryOp(Geometry, IBoundaryNodeRule)

    Initializes a new instance of the BoundaryOp class for the given geometry.

    Declaration
    public BoundaryOp(Geometry geom, IBoundaryNodeRule bnRule)
    Parameters
    Type Name Description
    Geometry geom

    The input geometry.

    IBoundaryNodeRule bnRule

    Tthe Boundary Node Rule to use.

    Methods

    | Edit this page View Source

    GetBoundary()

    Gets the computed boundary.

    Declaration
    public Geometry GetBoundary()
    Returns
    Type Description
    Geometry

    The boundary geometry.

    | Edit this page View Source

    GetBoundary(Geometry)

    Computes a geometry representing the boundary of a geometry.

    Declaration
    public static Geometry GetBoundary(Geometry g)
    Parameters
    Type Name Description
    Geometry g

    The input geometry.

    Returns
    Type Description
    Geometry

    The computed boundary.

    | Edit this page View Source

    GetBoundary(Geometry, IBoundaryNodeRule)

    Computes a geometry representing the boundary of a geometry, using an explicit IBoundaryNodeRule.

    Declaration
    public static Geometry GetBoundary(Geometry g, IBoundaryNodeRule bnRule)
    Parameters
    Type Name Description
    Geometry g

    The input geometry.

    IBoundaryNodeRule bnRule

    The Boundary Node Rule to use.

    Returns
    Type Description
    Geometry

    The computed boundary.

    | Edit this page View Source

    HasBoundary(Geometry, IBoundaryNodeRule)

    Tests if a geometry has a boundary (it is non-empty).
    The semantics are:

    • Empty geometries do not have boundaries.
    • Points do not have boundaries.
    • For linear geometries the existence of the boundary is determined by the IBoundaryNodeRule.
    • Non-empty polygons always have a boundary.
    Declaration
    public static bool HasBoundary(Geometry geom, IBoundaryNodeRule boundaryNodeRule)
    Parameters
    Type Name Description
    Geometry geom

    The geometry providing the boundary

    IBoundaryNodeRule boundaryNodeRule

    The Boundary Node Rule to use

    Returns
    Type Description
    bool

    true if the boundary exists

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