Пример #1
0
        private void defineCityRegionGroups()
        {
            var coll = db.GetCollection <StationGroup>("regionGroups");

            allRegionGroups = coll.Find(FilterDefinition <StationGroup> .Empty).ToList();
            cities          = MapTools.readCities();
            regions         = MapTools.readRegions();

            stations = StationGrouping.getAllStationsFromDB(db);
            setCityRegionGroups();
            //insertManyRecord("cityRegionGroups", cityRegionGroup);
        }
        public void getData()
        {
            cities  = MapTools.readCities();
            regions = MapTools.readRegions();
            //get the city's region
            getCityRegionName();
            //gets all the stations for which we have data
            getActiveStations();

            //getStationsFromDB(db);//this is the annula summary
            //gets the full list of meta data for all stations NOAA and IDEAM
            stations = getAllStationsFromDB(db);
        }