alsdb.processing._tiling.tile_bboxes#

alsdb.processing._tiling.tile_bboxes(bbox: tuple[float, float, float, float], tile_size: float, buffer: float) list[tuple[tuple[float, float, float, float], tuple[float, float, float, float]]][source]#

Partition bbox into a grid of sub-tiles.

Returns a list of (query_bbox, crop_bbox) pairs:

  • query_bbox — inflated by buffer on all sides; used for the TileDB query so filters.hag_delaunay has enough ground points at tile edges to form complete edge triangles.

  • crop_bbox — the actual non-overlapping tile extent; used to restrict output to avoid duplicate pixels in the mosaic.

Parameters:
  • bbox – Full area (min_x, min_y, max_x, max_y).

  • tile_size – Sub-tile width and height in metres.

  • buffer – Overlap buffer in metres added to the query bbox on each side. Set to 0.0 when no TIN-based filter is used (DTM, DSM).