private static ISpatialIndex BuildIndex(ISpatialIndexBuilder builder, IQueryable <Location> locations) { Console.Write("Building index.. "); var timer = Stopwatch.StartNew(); var index = builder.BuildIndex(locations); timer.Stop(); Console.WriteLine("ok ({0} ms)", timer.ElapsedMilliseconds); return(index); }
private static ISpatialIndex BuildIndex(ISpatialIndexBuilder builder, IQueryable<Location> locations) { Console.Write("Building index.. "); var timer = Stopwatch.StartNew(); var index = builder.BuildIndex(locations); timer.Stop(); Console.WriteLine("ok ({0} ms)", timer.ElapsedMilliseconds); return index; }