OuterRingAdjacent

Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG

Indicates whether two areas are adjacent.

Area adjacent to another area

public static bool OuterRingAdjacent(ReadOnlyLine a, ReadOnlyPolygon b)
public static bool OuterRingAdjacent(ReadOnlyPolygon a, ReadOnlyLine b)
public static bool OuterRingAdjacent(ReadOnlyPolygon a, ReadOnlyPolygon b)
Parameter Description
a First area: a closed ReadOnlyLine or a ReadOnlyPolygon.
b Second area.

Return value

The value returned by Adjacent when each ReadOnlyPolygon is replaced by a closed line containing its outer ring's vertices. Polygon holes are ignored: an area adjacent only to a polygon's hole is not adjacent to that polygon.

Exceptions

Exception When
ArgumentNullException a or b is null.
SEHException An area has an unclosed ring, a ring with zero area or a spike. See AreaArea exceptions.