build

Function build 

Source
pub fn build(
    geometries: &[(OsmNodeId, Polygon<f32>)],
) -> Result<RTree<ClusteredIntersections>, String>
Expand description

build an undirected graph of node geometries that intersect spatially. clusters are represented simply, without any changes to their geometries and linear-time intersection search for clusters. this performance hit is taken to avoid any edge cases where manipulation via overlay operations might lead to representation errors.