Create PostGIS template

su - postgres
psql postgres
postgres=# \c template1
postgres=# CREATE EXTENSION postgis;
createdb geodata -T template1

or

psql -d template_postgis -c "CREATE EXTENSION postgis;"

Comments

comments powered by Disqus