Skip to main content

isRingClosed

@totemsdk/spatial-proof


@totemsdk/spatial-proof / isRingClosed

Function: isRingClosed()

isRingClosed(ring): boolean

Ring closure: the first and last points must be equal. When a ring is not closed, it is rejected (see normalizePolygonRing for the deterministic normalizer).

Parameters

ring

Coordinate[]

Returns

boolean