Class GeometryGraph
A GeometryGraph is a graph that models a given Geometry.
Inheritance
GeometryGraph
Assembly: NetTopologySuite.dll
Syntax
public class GeometryGraph : PlanarGraph
Constructors
|
Improve this Doc
View Source
GeometryGraph(Int32, Geometry)
Declaration
public GeometryGraph(int argIndex, Geometry parentGeom)
Parameters
|
Improve this Doc
View Source
GeometryGraph(Int32, Geometry, IBoundaryNodeRule)
Declaration
public GeometryGraph(int argIndex, Geometry parentGeom, IBoundaryNodeRule boundaryNodeRule)
Parameters
Properties
|
Improve this Doc
View Source
BoundaryNodeRule
Declaration
public IBoundaryNodeRule BoundaryNodeRule { get; }
Property Value
|
Improve this Doc
View Source
BoundaryNodes
Declaration
public IList<Node> BoundaryNodes { get; }
Property Value
|
Improve this Doc
View Source
Geometry
Declaration
public Geometry Geometry { get; }
Property Value
|
Improve this Doc
View Source
HasTooFewPoints
Declaration
public bool HasTooFewPoints { get; }
Property Value
|
Improve this Doc
View Source
InvalidPoint
Declaration
public Coordinate InvalidPoint { get; }
Property Value
Methods
|
Improve this Doc
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
|
|
Improve this Doc
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
|
Improve this Doc
View Source
ComputeEdgeIntersections(GeometryGraph, LineIntersector, Boolean)
Declaration
public SegmentIntersector ComputeEdgeIntersections(GeometryGraph g, LineIntersector li, bool includeProper)
Parameters
Returns
|
Improve this Doc
View Source
ComputeSelfNodes(LineIntersector, Boolean)
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.
|
Boolean |
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.
|
|
Improve this Doc
View Source
ComputeSelfNodes(LineIntersector, Boolean, Boolean)
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
|
Boolean |
computeRingSelfNodes |
If false , intersection checks are optimized to not test rings for self-intersection
|
Boolean |
isDoneIfProperInt |
Short-circuit the intersection computation if a proper intersection is found
|
Returns
|
Improve this Doc
View Source
ComputeSplitEdges(IList<Edge>)
Declaration
public void ComputeSplitEdges(IList<Edge> edgelist)
Parameters
|
Improve this Doc
View Source
DetermineBoundary(IBoundaryNodeRule, Int32)
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
|
Int32 |
boundaryCount |
The number of component boundaries that a point occurs in.
|
Returns
|
Improve this Doc
View Source
FindEdge(LineString)
Declaration
public Edge FindEdge(LineString line)
Parameters
Returns
|
Improve this Doc
View Source
GetBoundaryPoints()
Declaration
public Coordinate[] GetBoundaryPoints()
Returns
|
Improve this Doc
View Source
Locate(Coordinate)
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
|