Skip to content

🌐 NZ Aerial Survey Indexes | PostGIS schema and documentation

License

Notifications You must be signed in to change notification settings

linz/nz-aerial-survey-indexes

Repository files navigation

NZ Aerial Imagery Indexes

CI Status Documentation Status License

Provides the schema and documentation for the Imagery Surveys dataset.

Installation

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.

Upgrade

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

Testing uses pgTAP via pg_prove.

make check