Перейти до основного вмісту

raygeo.nest.spatial_grid

Grid-based spatial index for fast overlap queries.

Divides the 2D plane into fixed-size cells and associates each inserted item with the cells its bounding box touches.

SpatialGrid

clear()

clear() -> None

ParameterTypeDescription
ReturnsNone

insert()

insert(index: int, bbox: Sequence[float]) -> None

ParameterTypeDescription
indexint
bboxSequence[float]
ReturnsNone

query()

query(bbox: Sequence[float]) -> list[int]

ParameterTypeDescription
bboxSequence[float]
Returnslist[int]