generate_points#
- caf.space.utils.generate_points(point_folder, points_name, zones_path, join_col)[source]#
Generate a point shapefile from a polygon shapefile and list of point IDs.
Reads in a polygon shapefile and a list of IDs from a csv. Removes all polygons with IDs matching the list, converts those features to points (centroids of the polygons), then fills in the spaces in the polygon gdf. Saves a point shapefile and a polygon shapefile with point features removes and filled in.
- Parameters:
point_folder (Folder containing points csv)
points_name (Name of points file)
zones_path (Path to zones shapefile)
join_col (The name of the ID column in the csv and the shapefile.)
- Return type:
Returns nothing, saves shapefiles to point_folder