zhyiwww
          用平實的筆,記錄編程路上的點點滴滴………
          posts - 536,comments - 394,trackbacks - 0

          把下面的代碼存為 install_postgis.sh
          然后執行。
          必須在postgres用戶下執行。



          ######################################################################
          ## install postgis on postgresql 8.3
          ##
          ## NOTICE:
          ##? su to postgres user,then execute sh install_postgis.sh
          ##
          ######################################################################

          dropdb postgis_template

          createdb -T template1 postgis_template


          createlang -d postgis_template plpgsql

          cd /usr/share/postgresql-8.3-postgis

          psql? -d postgis_template -f lwpostgis.sql
          psql? -d postgis_template -f spatial_ref_sys.sql

          ?
          psql? -d postgis_template -c "GRANT ALL ON geometry_columns TO PUBLIC"
          psql? -d postgis_template -c "GRANT ALL ON spatial_ref_sys TO PUBLIC"


          psql? -d postgis_template -c "VACUUM FREEZE"



          psql? -l



          |----------------------------------------------------------------------------------------|
                                     版權聲明  版權所有 @zhyiwww
                      引用請注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2009-06-26 16:55 zhyiwww 閱讀(1998) 評論(0)  編輯  收藏 所屬分類: databaselinuxgisPostgres
          主站蜘蛛池模板: 惠水县| 临高县| 华安县| 盖州市| 治多县| 阿拉善盟| 永州市| 南岸区| 沂源县| 德州市| 抚远县| 连南| 饶平县| 休宁县| 吴忠市| 汶上县| 沙田区| 西平县| 阿合奇县| 广昌县| 合水县| 乌兰察布市| 梨树县| 隆安县| 宜良县| 灵石县| 常山县| 柳州市| 靖边县| 扶风县| 阿合奇县| 甘德县| 于田县| 泾阳县| 西乌珠穆沁旗| 连云港市| 滁州市| 准格尔旗| 民和| 凤冈县| 天门市|