Skip to main content

spatial_join

Function spatial_join 

Source
pub fn spatial_join(
    indexed_side: &RTree,
    probe_entries: &[(u64, BoundingBox)],
    get_indexed_geom: &dyn Fn(u64) -> Option<Geometry>,
    get_probe_geom: &dyn Fn(u64) -> Option<Geometry>,
    predicate: SpatialJoinPredicate,
) -> SpatialJoinResult
Expand description

Execute a spatial join using R-tree probe.

indexed_side: R-tree built on one collection. probe_side: entries from the other collection to probe against. get_geometry: callback to retrieve the full geometry for an entry ID (needed for exact predicate evaluation after R-tree bbox filter). predicate: which spatial predicate to apply (intersects, contains, etc.).