Struct geom::find_closest::FindClosest [−][src]
Expand description
A quad-tree to quickly find the closest points to some polylines.
Fields
geometries: BTreeMap<K, LineString<f64>>
quadtree: QuadTree<K>
Implementations
Creates the quad-tree, limited to points contained in the boundary.
Add an object to the quadtree, remembering some key associated with the points. TODO This doesn’t properly handle single points, and will silently fail by never returning any matches.
For every object within some distance of a query point, return the (object’s key, point on the object’s polyline, distance away).