loader - abresee/geoaggregate GitHub Wiki
loader retrieves and imports datasets and provides facilities for managing an installed geoaggregate db.
Right now, loader only handles the U.S. census bureau's 113th Congressional District TIGER/Line dataset. loader knows the structure of the dataset, and fully automates the process of retrieving the dataset from the internet, extracting shapefiles and metadata, generating models from these files, syncing these models to the db, and loading the data itself from the shapefiles into the db.
loader uses the Django db system to manage its file paths. The manifest for supported datasets is stored a yaml file. the yaml file contains a mapping between FIPS codes and extents. The user specifies which things they need.