Provides the schemas and functions to generate the layers and tables that are available on the LDS:
lds.*
):
https://data.linz.govt.nz/data/category/property-ownership-boundaries/lds.geodetic_*
): https://data.linz.govt.nz/data/category/geodetic/bde_ext
):
https://data.linz.govt.nz/data/category/full-landonline-dataset/First install the project into the OS data share directory:
sudo make install
Then in each target database you need to install the linz-bde-schema project.
Then you can load the schema into a target database
linz-lds-bde-schema-load $DB_NAME
NOTE: the loader script will expect to find SQL scripts under /usr/share/linz-lds-bde-schema/sql
,
if you want them found in a different directory you can set the LDSBDESCHEMA_SQLDIR
environment
variable.
You can upgrade the schema in an existing database by following the install procedure. The
linz-lds-bde-schema-load
script is able to both install or upgrade databases.
Testing is done using pg_regress
and PgTap. To run the tests run the
following command:
make check
PDF documentation can be built using:
make docs
NOTE: if you get an error about connecting to X it is due to wkhtmltopdf
having a dependency on a
running X server. You can work around that by installing xvfb
and using:
xvfb-run make docs
Usage requires:
Documentation building requires:
Testing requires:
This project is under 3-clause BSD License, except where otherwise specified. See the LICENSE file for more details.