alsdb.Tile#

class alsdb.Tile(path: str | Path)[source]#

Wrapper around any LAZ/LAS tile file.

Provides lazy metadata access and a chunked point iterator backed by PDAL. Year, bounding box and CRS are read directly from the file header — no provider-specific filename convention is assumed.

__init__(path: str | Path) None[source]#

Methods

__init__(path)

read([chunk_size, out_crs])

Yield structured numpy arrays of LAS points read via PDAL.

Attributes

metadata

Lazily load and cache full PDAL pipeline metadata (runs filters.stats).

n_points

Total number of points in the file (from PDAL metadata).

name

Tile metadata (year, bbox, CRS) read from the LAZ file header.

native_bbox

Return (min_x, min_y, max_x, max_y) in the file's native CRS, as reported by filters.stats.

path