Esempio n. 1
0
 public List<Poi> findPois(Area area)
 {
     if (this.cacheArea == null)
     {
         return null;
     }
     List<Poi> areaPois = null;
     if (this.cacheArea.contains(area))
     {
         areaPois = this.cachedPois.FindAll(
             delegate(Poi p)
             {
                 return area.contains(p);
             }
         );
     }
     return areaPois;
 }
Esempio n. 2
0
        public List<Poi> findPois(Area area)
        {
            if (this.pois == null)
            {
                readPoisDir();
            }
            List<Poi> areaPois = this.pois.FindAll(
                delegate(Poi p) {
                    return area.contains(p);
                }
            );
            foreach (Poi p in areaPois)
            {
                if (p.isDataFree())
                {
                    this.poiMapperHdd.loadData(p, getPoiSubDir(p, this.currentNamedArea));
                }
            }

            return areaPois;
        }