Class TopologyLocation
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
A TopologyLocation is the labelling of a GraphComponent's topological relationship to a single Geometry.
public class TopologyLocation
- Inheritance
-
TopologyLocation
- Inherited Members
Remarks
If the parent component is an area edge, each side and the edge itself have a topological location. These locations are named:
On | on the edge |
Left | left-hand side of the edge |
Right | right-hand side |
If the parent component is a line edge or node, there is a single topological relationship attribute, On.
The possible values of a topological location are { Null, Exterior, Boundary, Interior }
The labelling is stored in an array _location[j] where where j has the values On, Left, Right.
Constructors
TopologyLocation(Location)
public TopologyLocation(Location on)
Parameters
on
Location
TopologyLocation(Location, Location, Location)
Constructs a TopologyLocation specifying how points on, to the left of, and to the right of some GraphComponent relate to some Geometry. Possible values for the parameters are Location.Null, Location.Exterior, Location.Boundary, and Location.Interior.
public TopologyLocation(Location on, Location left, Location right)
Parameters
on
LocationLocation
for On positionleft
LocationLocation
for Left positionright
LocationLocation
for Right position
TopologyLocation(Location[])
public TopologyLocation(Location[] location)
Parameters
location
Location[]
TopologyLocation(TopologyLocation)
public TopologyLocation(TopologyLocation gl)
Parameters
Properties
IsAnyNull
public bool IsAnyNull { get; }
Property Value
- bool
true
if any locations are Null.
IsArea
public bool IsArea { get; }
Property Value
IsLine
public bool IsLine { get; }
Property Value
IsNull
public bool IsNull { get; }
Property Value
- bool
true
if all locations are Null.
this[Position]
Get calls Get(Positions posIndex), Set calls SetLocation(Positions locIndex, Location locValue)
public Location this[Position posIndex] { get; set; }
Parameters
posIndex
Position
Property Value
this[Positions]
Get calls Get(Positions posIndex), Set calls SetLocation(Positions locIndex, Location locValue)
[Obsolete("Use the Geometries.Position indexer instead")]
public Location this[Positions posIndex] { get; set; }
Parameters
posIndex
Positions
Property Value
Methods
AllPositionsEqual(Location)
public bool AllPositionsEqual(Location loc)
Parameters
loc
Location
Returns
Flip()
public void Flip()
Get(Position)
public Location Get(Position posIndex)
Parameters
posIndex
Position
Returns
Get(Positions)
[Obsolete("Use Get(Geometries.Position)")]
public Location Get(Positions posIndex)
Parameters
posIndex
Positions
Returns
GetLocations()
public Location[] GetLocations()
Returns
- Location[]
IsEqualOnSide(TopologyLocation, int)
public bool IsEqualOnSide(TopologyLocation le, int locIndex)
Parameters
le
TopologyLocationlocIndex
int
Returns
Merge(TopologyLocation)
Merge updates only the Null attributes of this object with the attributes of another.
public void Merge(TopologyLocation gl)
Parameters
SetAllLocations(Location)
public void SetAllLocations(Location locValue)
Parameters
locValue
Location
SetAllLocationsIfNull(Location)
public void SetAllLocationsIfNull(Location locValue)
Parameters
locValue
Location
SetLocation(Location)
public void SetLocation(Location locValue)
Parameters
locValue
Location
SetLocation(Position, Location)
public void SetLocation(Position locIndex, Location locValue)
Parameters
SetLocation(Positions, Location)
[Obsolete("Use SetLocation(Geometries.Position, Location)")]
public void SetLocation(Positions locIndex, Location locValue)
Parameters
SetLocations(Location, Location, Location)
public void SetLocations(Location on, Location left, Location right)
Parameters
SetLocations(TopologyLocation)
public void SetLocations(TopologyLocation gl)
Parameters
ToString()
public override string ToString()