ubuntu postgis
体調不良と称して部屋でごろごろ。でもこっそり仕事を進めておく。
仕事の都合上PostgreSQL+PostGIS環境が欲しかったのでメモ。手元のubuntuは10.04。
- postgis, postgresql-8.4-postgisをインストール。
- この辺を参考にテンプレート作成。
dink@vaio-tz:~$ sudo su - postgres postgres@vaio-tz:~$ createdb template_postgis postgres@vaio-tz:~$ createlang plpgsql template_postgis postgres@vaio-tz:~$ psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis.sql postgres@vaio-tz:~$ psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql postgres@vaio-tz:~$ psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis_comments.sql
準備完了。あとはこれをテンプレートにDB作成していじり倒せる。
ついでにmapserverあたりも入れるかな。