Search Results for

    Show / Hide Table of Contents

    Class EdgeRing

    Inheritance
    object
    EdgeRing
    MaximalEdgeRing
    MinimalEdgeRing
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public abstract class EdgeRing

    Constructors

    | Edit this page View Source

    EdgeRing(DirectedEdge, GeometryFactory)

    Creates an instance of this class using the provided start and geometryFactory.

    Declaration
    protected EdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
    Parameters
    Type Name Description
    DirectedEdge start

    The start DirectedEdge for the EdgeRing

    GeometryFactory geometryFactory

    A GeometryFactory

    Fields

    | Edit this page View Source

    startDe

    The directed edge which starts the list of edges for this EdgeRing.

    Declaration
    protected DirectedEdge startDe
    Field Value
    Type Description
    DirectedEdge

    Properties

    | Edit this page View Source

    Edges

    Returns the list of DirectedEdges that make up this EdgeRing.

    Declaration
    public IList<DirectedEdge> Edges { get; }
    Property Value
    Type Description
    IList<DirectedEdge>

    A list of DirectedEdges

    | Edit this page View Source

    GeometryFactory

    A GeometryFactory to use.

    Declaration
    protected GeometryFactory GeometryFactory { get; }
    Property Value
    Type Description
    GeometryFactory
    | Edit this page View Source

    IsHole

    Gets a value indicating if this EdgeRing is a hole of a Polygon

    Declaration
    public bool IsHole { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsIsolated

    Gets a value indicating if this EdgeRing is isolated

    Declaration
    public bool IsIsolated { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsShell

    Declaration
    public bool IsShell { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Label

    Gets a value indicating the topological relationship of this EdgeRing

    Declaration
    public Label Label { get; }
    Property Value
    Type Description
    Label
    | Edit this page View Source

    LinearRing

    Gets the geometry representation of this EdgeRing

    Declaration
    public LinearRing LinearRing { get; }
    Property Value
    Type Description
    LinearRing
    | Edit this page View Source

    MaxNodeDegree

    Declaration
    public int MaxNodeDegree { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Shell

    Declaration
    public EdgeRing Shell { get; set; }
    Property Value
    Type Description
    EdgeRing

    Methods

    | Edit this page View Source

    AddHole(EdgeRing)

    Add an EdgeRing representing a hole

    Declaration
    public void AddHole(EdgeRing ring)
    Parameters
    Type Name Description
    EdgeRing ring

    The ring to add

    | Edit this page View Source

    AddPoints(Edge, bool, bool)

    Declaration
    protected void AddPoints(Edge edge, bool isForward, bool isFirstEdge)
    Parameters
    Type Name Description
    Edge edge
    bool isForward
    bool isFirstEdge
    | Edit this page View Source

    ComputePoints(DirectedEdge)

    Collect all the points from the DirectedEdges of this ring into a contiguous list.

    Declaration
    protected void ComputePoints(DirectedEdge start)
    Parameters
    Type Name Description
    DirectedEdge start
    | Edit this page View Source

    ComputeRing()

    Compute a LinearRing from the point list previously collected. Test if the ring is a hole (i.e. if it is CCW) and set the hole flag accordingly.

    Declaration
    public void ComputeRing()
    | Edit this page View Source

    ContainsPoint(Coordinate)

    This method will cause the ring to be computed. It will also check any holes, if they have been assigned.

    Declaration
    public bool ContainsPoint(Coordinate p)
    Parameters
    Type Name Description
    Coordinate p

    The point to test

    Returns
    Type Description
    bool

    true if the ring contains point p

    | Edit this page View Source

    GetCoordinate(int)

    Access a Coordinate of this EdgeRing by its index.

    Declaration
    public Coordinate GetCoordinate(int i)
    Parameters
    Type Name Description
    int i

    The index of the Coordinate

    Returns
    Type Description
    Coordinate

    The Coordinate at index i

    | Edit this page View Source

    GetNext(DirectedEdge)

    Declaration
    public abstract DirectedEdge GetNext(DirectedEdge de)
    Parameters
    Type Name Description
    DirectedEdge de
    Returns
    Type Description
    DirectedEdge
    | Edit this page View Source

    MergeLabel(Label)

    Declaration
    protected void MergeLabel(Label deLabel)
    Parameters
    Type Name Description
    Label deLabel
    | Edit this page View Source

    MergeLabel(Label, int)

    Merge the RHS label from a DirectedEdge into the label for this EdgeRing. The DirectedEdge label may be null. This is acceptable - it results from a node which is NOT an intersection node between the Geometries (e.g. the end node of a LinearRing). In this case the DirectedEdge label does not contribute any information to the overall labelling, and is simply skipped.

    Declaration
    protected void MergeLabel(Label deLabel, int geomIndex)
    Parameters
    Type Name Description
    Label deLabel
    int geomIndex
    | Edit this page View Source

    SetEdgeRing(DirectedEdge, EdgeRing)

    Declaration
    public abstract void SetEdgeRing(DirectedEdge de, EdgeRing er)
    Parameters
    Type Name Description
    DirectedEdge de
    EdgeRing er
    | Edit this page View Source

    SetInResult()

    Declaration
    public void SetInResult()
    | Edit this page View Source

    ToPolygon(GeometryFactory)

    Create the Polygon described by this EdgeRing

    Declaration
    public Polygon ToPolygon(GeometryFactory geometryFactory)
    Parameters
    Type Name Description
    GeometryFactory geometryFactory

    The GeometryFactory to use.

    Returns
    Type Description
    Polygon

    A Polygon

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