예제 #1
0
 def cities_in_region(self):
     from pyrocko.dataset import geonames
     cities = geonames.get_cities_region(region=self.wesn, minpop=0)
     cities.extend(self.custom_cities)
     cities.sort(key=lambda x: x.population)
     return cities
예제 #2
0
파일: automap.py 프로젝트: hvasbath/pyrocko
 def cities_in_region(self):
     from pyrocko.dataset import geonames
     cities = geonames.get_cities_region(region=self.wesn, minpop=0)
     cities.extend(self.custom_cities)
     cities.sort(key=lambda x: x.population)
     return cities