Computes the axis-aligned bounding box of a polygon across every ring
(outer and holes). Holes do not shrink the box - this is the smallest
rectangle that contains all of the polygon's geometry.
An empty polygon (no coordinates) returns a degenerate box with
minLon = minLat = Infinity and maxLon = maxLat = -Infinity.
Combined with pointInBoundingBox, such a box rejects every
query point - the same defensive behavior as
polygon.boundingBox.
Computes the axis-aligned bounding box of a polygon across every ring (outer and holes). Holes do not shrink the box - this is the smallest rectangle that contains all of the polygon's geometry.
An empty polygon (no coordinates) returns a degenerate box with
minLon = minLat = InfinityandmaxLon = maxLat = -Infinity. Combined with pointInBoundingBox, such a box rejects every query point - the same defensive behavior as polygon.boundingBox.