Search Results for

    Show / Hide Table of Contents

    Class GeometryGraph

    A GeometryGraph is a graph that models a given Geometry.

    Inheritance
    object
    PlanarGraph
    GeometryGraph
    Inherited Members
    PlanarGraph.LinkResultDirectedEdges(IList<Node>)
    PlanarGraph.edgeEndList
    PlanarGraph.GetEdgeEnumerator()
    PlanarGraph.EdgeEnds
    PlanarGraph.Edges
    PlanarGraph.IsBoundaryNode(int, Coordinate)
    PlanarGraph.InsertEdge(Edge)
    PlanarGraph.Add(EdgeEnd)
    PlanarGraph.GetNodeEnumerator()
    PlanarGraph.Nodes
    PlanarGraph.NodeMap
    PlanarGraph.AddNode(Node)
    PlanarGraph.AddNode(Coordinate)
    PlanarGraph.Find(Coordinate)
    PlanarGraph.AddEdges(IList<Edge>)
    PlanarGraph.LinkResultDirectedEdges()
    PlanarGraph.LinkAllDirectedEdges()
    PlanarGraph.FindEdgeEnd(Edge)
    PlanarGraph.FindEdge(Coordinate, Coordinate)
    PlanarGraph.FindEdgeInSameDirection(Coordinate, Coordinate)
    PlanarGraph.WriteEdges(StreamWriter)
    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 class GeometryGraph : PlanarGraph

    Constructors

    | Edit this page View Source

    GeometryGraph(int, Geometry)

    Declaration
    public GeometryGraph(int argIndex, Geometry parentGeom)
    Parameters
    Type Name Description
    int argIndex
    Geometry parentGeom
    | Edit this page View Source

    GeometryGraph(int, Geometry, IBoundaryNodeRule)

    Declaration
    public GeometryGraph(int argIndex, Geometry parentGeom, IBoundaryNodeRule boundaryNodeRule)
    Parameters
    Type Name Description
    int argIndex
    Geometry parentGeom
    IBoundaryNodeRule boundaryNodeRule

    Properties

    | Edit this page View Source

    BoundaryNodeRule

    Gets the IBoundaryNodeRule used with this geometry graph.

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

    BoundaryNodes

    Declaration
    public IList<Node> BoundaryNodes { get; }
    Property Value
    Type Description
    IList<Node>
    | Edit this page View Source

    Geometry

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

    HasTooFewPoints

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

    InvalidPoint

    Declaration
    public Coordinate InvalidPoint { get; }
    Property Value
    Type Description
    Coordinate

    Methods

    | Edit this page View Source

    AddEdge(Edge)

    Add an Edge computed externally. The label on the Edge is assumed to be correct.

    Declaration
    public void AddEdge(Edge e)
    Parameters
    Type Name Description
    Edge e

    An Edge

    | Edit this page View Source

    AddPoint(Coordinate)

    Add a point computed externally. The point is assumed to be a Point Geometry part, which has a location of INTERIOR.

    Declaration
    public void AddPoint(Coordinate pt)
    Parameters
    Type Name Description
    Coordinate pt

    A Coordinate

    | Edit this page View Source

    ComputeEdgeIntersections(GeometryGraph, LineIntersector, bool)

    Declaration
    public SegmentIntersector ComputeEdgeIntersections(GeometryGraph g, LineIntersector li, bool includeProper)
    Parameters
    Type Name Description
    GeometryGraph g
    LineIntersector li
    bool includeProper
    Returns
    Type Description
    SegmentIntersector
    | Edit this page View Source

    ComputeSelfNodes(LineIntersector, bool)

    Compute self-nodes, taking advantage of the Geometry type to minimize the number of intersection tests. (E.g. rings are not tested for self-intersection, since they are assumed to be valid).

    Declaration
    public SegmentIntersector ComputeSelfNodes(LineIntersector li, bool computeRingSelfNodes)
    Parameters
    Type Name Description
    LineIntersector li

    The LineIntersector to use.

    bool computeRingSelfNodes

    If false, intersection checks are optimized to not test rings for self-intersection.

    Returns
    Type Description
    SegmentIntersector

    The computed SegmentIntersector, containing information about the intersections found.

    | Edit this page View Source

    ComputeSelfNodes(LineIntersector, bool, bool)

    Compute self-nodes, taking advantage of the Geometry type to minimize the number of intersection tests. (E.g.rings are not tested for self-intersection, since they are assumed to be valid).

    Declaration
    [Obsolete("Shrot circuiting no longer allowed")]
    public SegmentIntersector ComputeSelfNodes(LineIntersector li, bool computeRingSelfNodes, bool isDoneIfProperInt)
    Parameters
    Type Name Description
    LineIntersector li

    The LineIntersector to use

    bool computeRingSelfNodes

    If false, intersection checks are optimized to not test rings for self-intersection

    bool isDoneIfProperInt

    Short-circuit the intersection computation if a proper intersection is found

    Returns
    Type Description
    SegmentIntersector
    | Edit this page View Source

    ComputeSplitEdges(IList<Edge>)

    Declaration
    public void ComputeSplitEdges(IList<Edge> edgelist)
    Parameters
    Type Name Description
    IList<Edge> edgelist
    | Edit this page View Source

    DetermineBoundary(IBoundaryNodeRule, int)

    Determine boundary

    Declaration
    public static Location DetermineBoundary(IBoundaryNodeRule boundaryNodeRule, int boundaryCount)
    Parameters
    Type Name Description
    IBoundaryNodeRule boundaryNodeRule

    The boundary node rule to apply for determination of the boundary

    int boundaryCount

    The number of component boundaries that a point occurs in.

    Returns
    Type Description
    Location

    Boundary or Interior

    | Edit this page View Source

    FindEdge(LineString)

    Declaration
    public Edge FindEdge(LineString line)
    Parameters
    Type Name Description
    LineString line
    Returns
    Type Description
    Edge
    | Edit this page View Source

    GetBoundaryPoints()

    Declaration
    public Coordinate[] GetBoundaryPoints()
    Returns
    Type Description
    Coordinate[]
    | Edit this page View Source

    Locate(Coordinate)

    Determines the Location of the given Coordinate in this geometry.

    Declaration
    public Location Locate(Coordinate pt)
    Parameters
    Type Name Description
    Coordinate pt

    The point to test

    Returns
    Type Description
    Location

    The location of the point in the geometry

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