Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }