Ejemplo n.º 1
0
 def extractAll(self):
     shp = ShpParser(config.poly_dir)
     for city in config.allcities.keys():
         # Greater London is a special case as it has 32 councils
         if city != "Greater London":
             shp.parse(config.boundaries_file, city, False)
         
     shp = ShpParser(config.greater_london_out_dir)
     for borough in config.greater_london:
         shp.parse(config.boundaries_file, borough, False)
         
     pts = convexhull.merge(config.greater_london_out_dir)
     c = convexhull.convexHull(pts)
     shp.write('Greater London_OSGB36_polygon.csv', c)
Ejemplo n.º 2
0
 def extractOne(self, cityName):
     shp = ShpParser(config.poly_dir)
     shp.parse(config.boundaries_file, cityName, False)
     shp.parse(config.boundaries_file, cityName, True)