Skip to main content

Function: exteriorRings()

exteriorRings(geometry): GeoLinearRing[]

Defined in: src/mobjects/geo/geojson.ts:95

Return the exterior rings of a feature's geometry.

A Polygon yields its first ring. A MultiPolygon yields the first ring of each contained polygon. Interior rings (holes) are not included; use polygonRings to get the exterior together with its holes.

Parameters​

geometry​

GeoGeometry

The feature geometry.

Returns​

GeoLinearRing[]

One linear ring per exterior boundary.