mktemplate_gis(1)

NAME

mktemplate_gis - Create Postgis template in a PostgreSQL server.

SYNTAX

mktemplate_gis [option]

DESCRIPTION

This program create a template database for working with Postgis geometries.
It requires to be run by root, or by PostgreSQL superuser (DBA), but once created, any user with createdb permissions can create and manage a spatial enabled database with createdb.postgis.
PostgreSQL should be running.

OPTIONS

--user=<dbowner>
    Creates a database template owned by <dbowner>.

--template=<template_name>
    Set template name to be <template_name>, it defaults to <template_gis>

--dba=<dba_name>
    DBA is required to perform template database building. Set DBA name to be <dba_name>, it defaults to <postgres>

--force-sudo
    By default, non root users have no sudo rights. But if the user knows of having the sudo right to DBA, this parameter should be passed.

--help
    Output help information and exit.

ENVIRONMENT

TEMPLATEDB
    If $TEMPLATEDB is set, its value is used as the default template name.

GRUSER
    If $GRUSER is set, its value is used as the default user to own the template.

DBAUSER
    If $DBAUSER is set, its value is used as the default DBA for building the template.

EXAMPLES

To run this program the standard way, you can simply type:

# mktemplate_gis

Alternatively you can specify also a template name to create and the database superuser:

# mktemplate_gis --user=postgres --template=template_postgis

AUTHORS

Alex Bodnaru <alexbodn@012.net.il>
Roberto Boati <roberto.boati@daisyred.com>

SEE ALSO

createdb.postgis(1), rmtemplate_gis(1)