alsdb.processing._tiling.array_data_bbox#

alsdb.processing._tiling.array_data_bbox(provider) tuple[float, float, float, float][source]#

Return the bounding box of actually stored data via nonempty_domain.

Unlike array_domain_bbox, this reflects the real extent of points in the array, not the declared schema domain. Use this as the default extent for processing so tiles are only generated where data exists.

Returns:

(min_x, min_y, max_x, max_y)

Return type:

tuple[float, float, float, float]

Raises:

RuntimeError – If the array is empty (no points ingested yet).