Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.625 kb
PostGIS
----
Installation
----
$ su - postgres
$ psql
# create database template_postgis with template = template1;
# UPDATE pg_database SET datistemplate = TRUE where datname = 'template_postgis';
# \c template_postgis
# CREATE LANGUAGE plpgsql;
# \i /path/to/share/postgis/lwpostgis.sql;
# \i /path/to/share/postgis/spatial_ref_sys.sql;
# GRANT ALL ON geometry_columns TO PUBLIC;
# GRANT ALL ON spatial_ref_sys TO PUBLIC;
# VACUUM FREEZE;
Create a table
----
$ createdb -O <owner> -T template_postgis <new_table_name>
Jump to Line
Something went wrong with that request. Please try again.