Beispiel #1
0
        public IList <IFeature> Get(MRect extent, double resolution, ITileSchema schema, ITileCache <IFeature?> memoryCache)
        {
            var dictionary = new Dictionary <TileIndex, IFeature>();
            var level      = BruTile.Utilities.GetNearestLevel(schema.Resolutions, resolution);

            GetRecursive(dictionary, schema, memoryCache, extent.ToExtent(), level);
            var sortedFeatures = dictionary.OrderByDescending(t => schema.Resolutions[t.Key.Level].UnitsPerPixel);

            return(sortedFeatures.ToDictionary(pair => pair.Key, pair => pair.Value).Values.ToList());
        }