Computes the axis-aligned bounding box of a polygon exterior ring.
An empty ring returns a degenerate "empty" bounding box with
minLon = minLat = Infinity and maxLon = maxLat = -Infinity. Combined
with pointInBoundingBox, such a box rejects every query point,
which is the defensively safe behavior for an uninitialized or invalid
ring.
Parameters
ring: number[][]
Polygon exterior ring as [lon, lat] coordinate pairs.
Computes the axis-aligned bounding box of a polygon exterior ring.
An empty ring returns a degenerate "empty" bounding box with
minLon = minLat = InfinityandmaxLon = maxLat = -Infinity. Combined with pointInBoundingBox, such a box rejects every query point, which is the defensively safe behavior for an uninitialized or invalid ring.