cuspa.SpatialIndex#

class cuspa.SpatialIndex(
origin_x: float,
origin_y: float,
cell_size_x: float,
cell_size_y: float,
nx: int,
ny: int,
grid_offsets: Any,
poly_ids: Any,
aabbs: Any,
)#

Uniform-grid spatial index over polygon AABBs.

grid_offsets and poly_ids store a CSR-style mapping from grid cells to polygon IDs.

Attributes

SpatialIndex.origin_x: float#
SpatialIndex.origin_y: float#
SpatialIndex.cell_size_x: float#
SpatialIndex.cell_size_y: float#
SpatialIndex.nx: int#
SpatialIndex.ny: int#
SpatialIndex.grid_offsets: Any#
SpatialIndex.poly_ids: Any#
SpatialIndex.aabbs: Any#
SpatialIndex.num_cells#