linz / linz-lds-bde-schema

Table schema and supporting functions for the simplified and full Landonline layers and table on the LINZ Data Service. This repository was merged in to BDE Processor in latest master branch version !
Other
3 stars 2 forks source link

Actions Status

LINZ LDS BDE Schemas

Provides the schemas and functions to generate the layers and tables that are available on the LDS:

Installation

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.

Upgrade

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

Testing is done using pg_regress and PgTap. To run the tests run the following command:

make check

Building Documentation

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

Dependencies

Usage requires:

Documentation building requires:

Testing requires:

License

This project is under 3-clause BSD License, except where otherwise specified. See the LICENSE file for more details.