Class Edge
Assembly: NetTopologySuite.dll
Syntax
public class Edge : GraphComponent
Constructors
|
Improve this Doc
View Source
Edge(Coordinate[])
Declaration
public Edge(Coordinate[] pts)
Parameters
|
Improve this Doc
View Source
Edge(Coordinate[], Label)
Declaration
public Edge(Coordinate[] pts, Label label)
Parameters
Properties
|
Improve this Doc
View Source
CollapsedEdge
Declaration
public Edge CollapsedEdge { get; }
Property Value
|
Improve this Doc
View Source
Coordinate
Declaration
public override Coordinate Coordinate { get; protected set; }
Property Value
Overrides
|
Improve this Doc
View Source
Coordinates
Declaration
public Coordinate[] Coordinates { get; }
Property Value
|
Improve this Doc
View Source
Depth
Declaration
public Depth Depth { get; }
Property Value
|
Improve this Doc
View Source
DepthDelta
The depthDelta is the change in depth as an edge is crossed from R to L.
Declaration
public int DepthDelta { get; set; }
Property Value
Type |
Description |
Int32 |
The change in depth as the edge is crossed from R to L.
|
|
Improve this Doc
View Source
EdgeIntersectionList
Declaration
public EdgeIntersectionList EdgeIntersectionList { get; }
Property Value
|
Improve this Doc
View Source
Envelope
Declaration
public Envelope Envelope { get; }
Property Value
|
Improve this Doc
View Source
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
|
Improve this Doc
View Source
IsCollapsed
An Edge is collapsed if it is an Area edge and it consists of
two segments which are equal and opposite (eg a zero-width V).
Declaration
public bool IsCollapsed { get; }
Property Value
Type |
Description |
Boolean |
true if edge is consisting of two segments
which are equal and of oppose orientation (Zero-width V area edge)
|
|
Improve this Doc
View Source
IsIsolated
Declaration
public override bool IsIsolated { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Isolated
Declaration
public bool Isolated { get; set; }
Property Value
|
Improve this Doc
View Source
MaximumSegmentIndex
Declaration
public int MaximumSegmentIndex { get; }
Property Value
|
Improve this Doc
View Source
MonotoneChainEdge
Declaration
public MonotoneChainEdge MonotoneChainEdge { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
|
Improve this Doc
View Source
NumPoints
Declaration
public int NumPoints { get; }
Property Value
|
Improve this Doc
View Source
Points
Declaration
public Coordinate[] Points { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddIntersection(LineIntersector, Int32, Int32, Int32)
Add an EdgeIntersection for intersection intIndex.
An intersection that falls exactly on a vertex of the edge is normalized
to use the higher of the two possible segmentIndexes.
Declaration
public void AddIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
Parameters
Type |
Name |
Description |
LineIntersector |
li |
A line intersector
|
Int32 |
segmentIndex |
A segment index
|
Int32 |
geomIndex |
A geometry index
|
Int32 |
intIndex |
The intersection index (0 or 1)
|
|
Improve this Doc
View Source
AddIntersections(LineIntersector, Int32, Int32)
Adds EdgeIntersections for one or both
intersections found for a segment of an edge to the edge intersection list.
Declaration
public void AddIntersections(LineIntersector li, int segmentIndex, int geomIndex)
Parameters
Type |
Name |
Description |
LineIntersector |
li |
A line intersector
|
Int32 |
segmentIndex |
A segment index
|
Int32 |
geomIndex |
A geometry index
|
|
Improve this Doc
View Source
ComputeIM(IntersectionMatrix)
Update the IM with the contribution for this component.
A component only contributes if it has a labelling for both parent geometries.
Declaration
public override void ComputeIM(IntersectionMatrix im)
Parameters
Overrides
|
Improve this Doc
View Source
Equals(Edge)
Equals is defined to be:
e1 equals e2
if
the coordinates of e1 are the same or the reverse of the coordinates in e2.
Declaration
protected bool Equals(Edge e)
Parameters
Type |
Name |
Description |
Edge |
e |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Equals is defined to be:
e1 equals e2
if
the coordinates of e1 are the same or the reverse of the coordinates in e2.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
|
Improve this Doc
View Source
GetCoordinate(Int32)
Declaration
public Coordinate GetCoordinate(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
IsPointwiseEqual(Edge)
Check if coordinate sequences of the Edges are identical.
Declaration
public bool IsPointwiseEqual(Edge e)
Parameters
Type |
Name |
Description |
Edge |
e |
The edge to test
|
Returns
Type |
Description |
Boolean |
true if the coordinate sequences of the Edges are identical.
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
UpdateIM(Label, IntersectionMatrix)
Updates an IM from the label for an edge.
Handles edges from both L and A geometries.
Declaration
public static void UpdateIM(Label label, IntersectionMatrix im)
Parameters
|
Improve this Doc
View Source
Write(TextWriter)
Declaration
public void Write(TextWriter outstream)
Parameters
|
Improve this Doc
View Source
WriteReverse(TextWriter)
Declaration
public void WriteReverse(TextWriter outstream)
Parameters
Operators
|
Improve this Doc
View Source
Equality(Edge, Edge)
Declaration
public static bool operator ==(Edge obj1, Edge obj2)
Parameters
Type |
Name |
Description |
Edge |
obj1 |
|
Edge |
obj2 |
|
Returns
|
Improve this Doc
View Source
Inequality(Edge, Edge)
Declaration
public static bool operator !=(Edge obj1, Edge obj2)
Parameters
Type |
Name |
Description |
Edge |
obj1 |
|
Edge |
obj2 |
|
Returns