We next need to implement the ability to export a shapefile. The process of exporting a shapefile is basically the reverse of the importing logic, and involves the following steps:
All this work will take place in the
shapefileIO.py module, with help from some
utils.py functions. Before we begin, let's define the
export_data() function so that we have somewhere to place our code. Edit
shapefileIO.py, and add the following new function:
def export_data(shapefile): return "More to come..."
While we're at ...