anime

Function create_source_rtree

Source
pub fn create_source_rtree(
    x: impl Iterator<Item = LineString>,
) -> RTree<GeomWithData<CachedEnvelope<Line>, (usize, f64)>>
Expand description

Create an RTree from LineStringArray

Creates an R* Tree using cached envelopes for each Line in a LineString. In addition to the envelope, it stores the slope, and the index of the LineString.