Search Results for

    Show / Hide Table of Contents

    Class ComponentJumpChecker

    Checks if simplifying (flattening) line sections or segments would cause them to "jump" over other components in the geometry.

    Inheritance
    object
    ComponentJumpChecker
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Simplify
    Assembly: NetTopologySuite.dll
    Syntax
    public sealed class ComponentJumpChecker

    Methods

    | Edit this page View Source

    HasJump(TaggedLineString, LineSegment, LineSegment, LineSegment)

    Checks if two consecutive segments jumps a component if flattened. The segments are assumed to be consecutive. (so the seg1.P1 = seg2.P0). The flattening segment must be the segment between seg1.P0 and seg2.P1.

    Declaration
    public bool HasJump(TaggedLineString line, LineSegment seg1, LineSegment seg2, LineSegment seg)
    Parameters
    Type Name Description
    TaggedLineString line

    The line containing the section being flattened

    LineSegment seg1

    The first replaced segment

    LineSegment seg2

    The next replaced segment

    LineSegment seg

    The flattening segment

    Returns
    Type Description
    bool

    true if the flattened segment jumps a component

    | Edit this page View Source

    HasJump(TaggedLineString, int, int, LineSegment)

    Checks if a line section jumps a component if flattened.

    Declaration
    public bool HasJump(TaggedLineString line, int start, int end, LineSegment seg)
    Parameters
    Type Name Description
    TaggedLineString line

    The line containing the section being flattened

    int start

    Start index of the section

    int end

    End index of the section

    LineSegment seg

    The flattening segment

    Returns
    Type Description
    bool

    true if the flattened section jumps a component

    Remarks

    Assumes start <= end

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