LinearRing
This class represents a closed, non-self-intersecting sequence of line segments that forms a boundary. It extends the LineString functionality with a requirement for a minimum number of points and provides a property to determine the winding order of the ring.
Constructor
Signature
def LinearRing() - > null
Methods
is_counterclockwise()
@classmethod
def is_counterclockwise() - > boolean
Determines if the ring's vertices are ordered in a counter-clockwise direction. Raises a ValueError if the LinearRing is empty, as orientation cannot be determined for empty geometries.
Returns
| Type | Description |
|---|---|
boolean | True if the ring orientation is counter-clockwise, False if it is clockwise. |