Provides the schema and documentation for the Imagery Surveys dataset.
First install the project into the OS data share directory:
sudo make install
Then you can load the schema into a target database:
nz-aerial-load $DB_NAME
NOTE: the loader script will expect to find SQL scripts under /usr/share/nz-aerial/, if you want them found in a different directory you can set the AERIALSCHEMA_SQLDIR environment variable.
sudo make uninstall && make clean && sudo make install
The nz-aerial-load script will then upgrade a database schema, by replacing the existing schema. All data will be lost.
Testing uses pgTAP via pg_prove.
make check