https://github.com/linz/nz-aerial-survey-indexes
:globe_with_meridians: NZ Aerial Survey Indexes | PostGIS schema and documentation
https://github.com/linz/nz-aerial-survey-indexes
aerial-imagery database-schema postgresql-database topo
Last synced: 4 months ago
JSON representation
:globe_with_meridians: NZ Aerial Survey Indexes | PostGIS schema and documentation
- Host: GitHub
- URL: https://github.com/linz/nz-aerial-survey-indexes
- Owner: linz
- License: other
- Created: 2018-01-09T00:33:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T00:07:06.000Z (about 2 years ago)
- Last Synced: 2025-03-15T01:29:40.541Z (7 months ago)
- Topics: aerial-imagery, database-schema, postgresql-database, topo
- Language: PLpgSQL
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
=========================
NZ Aerial Imagery Indexes
=========================
.. image:: https://github.com/linz/nz-aerial-survey-indexes/workflows/Build/badge.svg
:target: https://github.com/linz/nz-aerial-survey-indexes/actions
:alt: CI Status
.. image:: https://readthedocs.org/projects/nz-imagery-surveys/badge/?version=latest
:target: https://nz-imagery-surveys.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
:target: https://github.com/linz/nz-aerial-survey-indexes/blob/master/LICENSE
:alt: License
Provides the schema and documentation for the Imagery Surveys dataset.
Installation
============
First install the project into the OS data share directory:
.. code-block:: shell
sudo make install
Then you can load the schema into a target database:
.. code-block:: shell
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
=======
.. code-block:: shell
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`.
.. code-block:: shell
make check