After running Represent Boundaries for a while, you may need to add new shapefiles, update a shapefile, or correct an error in a definition file. The
loadshapefiles command has options to make data management easy. To see all options, run:
python manage.py help loadshapefiles
If you add a shapefile, create a definition file and run the
loadshapefiles command, which will automatically skip all shapefiles that have already been loaded.
If you update a shapefile, remember to change the
last_updated field in its definition file. When you run the
loadshapefiles command, only the updated shapefile will be re-loaded.
If you correct an error in a definition file, run the
loadshapefiles with the
--reload switch to force the re-load of the shapefile. To avoid re-loading all your shapefiles, add a
--data-dir option pointing to the directory containing the corrected definition file:
python manage.py loadshapefiles --reload --data-dir data/shapefiles/my-folder
Want to use Represent Boundaries but don't have a developer on your team? Contact us about how we can help you implement Represent Boundaries.