public HashSet <ISpatialTreeNode> Query(CoordinateRectangle rectangle) { //for debug to see how many iterations used for a search var i = SpatialQueryIterator.Start(); var res = new HashSet <ISpatialTreeNode>(); _root.Query(res, rectangle, IntersectResult.None, i); //index turning System.Diagnostics.Trace.WriteLine(string.Format("{5} Level nodes {1} {2} {3} {4}, Query iterations - {0:d}", i.Value, NodeDimension[0], NodeDimension[1], NodeDimension[2], NodeDimension[3], typeof(TNode).Name)); return(res); }
public HashSet <ISpatialTreeNode> Distance(GeomCoordinate coordinate, double variance) { //for debug to see how many iterations used for a search var i = SpatialQueryIterator.Start(); var res = new HashSet <ISpatialTreeNode>(); _root.Distance(res, coordinate, variance, i); //index turning System.Diagnostics.Trace.WriteLine(string.Format("{5} Level nodes {1} {2} {3} {4}, Distance iterations - {0:d}", i.Value, NodeDimension[0], NodeDimension[1], NodeDimension[2], NodeDimension[3], typeof(TNode).Name)); return(res); }