Home > DB | PostGIS | PostgreSQL | UNIX | Ubuntu > [Ubuntu]Ubuntu8.10でPostGISを使えるようにする。[PostGIS]

[Ubuntu]Ubuntu8.10でPostGISを使えるようにする。[PostGIS]

  1. PostgreSQLとかPostGISをインストールしてない人はインストールする。
    # apt-get install postgresql postgresql-8.3-postgis

    Postgresの設定は[Ubuntu]Ubuntu8.10へApache、PHP、MySQL、PostgreSQLをインストールする。[LAMP]でも参照して下さい。

  2. PostGIS用に初期化済テンプレートDBを構築する。
    $ su - postgres
    $ createdb templategis
    $ createlang plpgsql templategis
    $ psql -d templategis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
    $ psql -d templategis -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
    
  3. PostGIS用テンプレートDBを利用して、作成したいDBを作る。
    createdb -T templategis newdb

Comments:0

add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://ore.saizensen.net/archives/160/trackback
Listed below are links to weblogs that reference
[Ubuntu]Ubuntu8.10でPostGISを使えるようにする。[PostGIS] from おれ最前線ねっと

Home > DB | PostGIS | PostgreSQL | UNIX | Ubuntu > [Ubuntu]Ubuntu8.10でPostGISを使えるようにする。[PostGIS]

Search
Feeds
Meta

Return to page top