Skip to main content

geometry_intersects_bbox

Function geometry_intersects_bbox 

Source
pub fn geometry_intersects_bbox(geometry: &Geometry, bbox: &GeoBBox) -> bool
Expand description

Test whether a feature geometry intersects a geographic bounding box.

Returns true when any part of the geometry touches or overlaps the box. The test is performed in Web Mercator projected world space.

This is the geometric predicate underlying MapState::query_rendered_features_in_box.