Search Results for

    Show / Hide Table of Contents

    Interface IBoundaryNodeRule

    An interface for rules which determine whether node points which are in boundaries of ILineal geometry components are in the boundary of the parent geometry collection. The SFS specifies a single kind of boundary node rule, the BoundaryNodeRules.Mod2BoundaryNodeRule rule. However, other kinds of Boundary Node Rules are appropriate in specific situations (for instance, linear network topology usually follows the BoundaryNodeRules.EndPointBoundaryNodeRule.) Some JTS operations (such as RelateOp, BoundaryOp and IsSimpleOp) allow the BoundaryNodeRule to be specified, and respect the supplied rule when computing the results of the operation.

    An example use case for a non-SFS-standard Boundary Node Rule is that of checking that a set of LineStrings have valid linear network topology, when turn-arounds are represented as closed rings. In this situation, the entry road to the turn-around is only valid when it touches the turn-around ring at the single (common) endpoint. This is equivalent to requiring the set of LineStrings to be simple under the BoundaryNodeRules.EndPointBoundaryNodeRule. The SFS-standard BoundaryNodeRules.Mod2BoundaryNodeRule is not sufficient to perform this test, since it states that closed rings have no boundary points.

    This interface and its subclasses follow the Strategy design pattern.
    Namespace: NetTopologySuite.Algorithm
    Assembly: NetTopologySuite.dll
    Syntax
    public interface IBoundaryNodeRule

    Methods

    | Edit this page View Source

    IsInBoundary(int)

    Tests whether a point that lies in boundaryCount geometry component boundaries is considered to form part of the boundary of the parent geometry.

    Declaration
    bool IsInBoundary(int boundaryCount)
    Parameters
    Type Name Description
    int boundaryCount

    boundaryCount the number of component boundaries that this point occurs in

    Returns
    Type Description
    bool

    true if points in this number of boundaries lie in the parent boundary

    See Also

    RelateOp
    BoundaryOp
    IsSimpleOp
    PointLocator
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX