PostGIS - can't create spatially-enabled database
Posted
by
itgorilla
on Stack Overflow
See other posts from Stack Overflow
or by itgorilla
Published on 2011-01-15T15:22:10Z
Indexed on
2011/01/15
15:53 UTC
Read the original article
Hit count: 364
I'm using Ubuntu 10.10, PostgreSQL 9.0 and PostGIS 1.5.
I've installed PostGIS 1.5 from: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
I used PPA first then the command:
sudo apt-get install postgis
to install postgis. I've been following these instructions to create a spatially-enabled database:
http://ostgis.refractions.net/docs/ch02.html#id2630100
I got to the point where it's saying:
Now load the PostGIS object and function definitions into your database by loading the postgis.sql definitions file (located in [prefix]/share/contrib as specified during the configuration step).
psql -d [yourdatabase] -f postgis.sql
Well, there is no postgis.sql on my server after the installation. I did an sudo updatedb to make sure I can find postgis.sql but it's not there. Any ideas? Thank you!
© Stack Overflow or respective owner