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)
def extractOne(self, cityName): shp = ShpParser(config.poly_dir) shp.parse(config.boundaries_file, cityName, False) shp.parse(config.boundaries_file, cityName, True)