Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Created March 17, 2010 03:34
Show Gist options
  • Select an option

  • Save ericboehs/334870 to your computer and use it in GitHub Desktop.

Select an option

Save ericboehs/334870 to your computer and use it in GitHub Desktop.
Create a PostGIS template
sudo su postgres
createdb template_postgis15 -U postgres
cd /usr/share/pgsql/contrib/postgis-1.5
psql -d template_postgis15 -U postgres -c "CREATE LANGUAGE plpgsql"
psql -d template_postgis15 -U postgres -f postgis.sql
psql -d template_postgis15 -U postgres -f spatial_ref_sys.sql
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment