Skip to main content

should_store_envelope

Function should_store_envelope 

Source
pub fn should_store_envelope(cell_id: u64, envelope: &GeoEnvelope) -> bool
Expand description

Whether the posting (cell, geometry) stores the envelope value.

Tight leaf-ish covering cells omit it (S2 already did the work); coarse cells carry it so the scan can AABB-reject candidates that S2’s over-return pulled in. Axis-aligned rectangles benefit the most — and are exactly the shapes where Relate is cheapest to defer.