@squawk
    Preparing search index...
    • 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.

      Parameters

      • polygon: Polygon

        GeoJSON Polygon.

      Returns polygon.BoundingBox

      The minimum bounding box enclosing every ring.