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 閱讀(2007) 評論(0)  編輯  收藏 所屬分類: databaselinuxgisPostgres
          主站蜘蛛池模板: 台中市| 江川县| 攀枝花市| 榆林市| 错那县| 岢岚县| 重庆市| 锡林郭勒盟| 永泰县| 余江县| 黄冈市| 义马市| 安丘市| 怀远县| 永吉县| 阿图什市| 宜川县| 聂荣县| 英山县| 郑州市| 康平县| 清涧县| 临朐县| 农安县| 保山市| 太仓市| 武鸣县| 龙岩市| 旬邑县| 乾安县| 周至县| 赣榆县| 咸丰县| 莎车县| 宿迁市| 嘉善县| 汝阳县| 恩平市| 贵定县| 攀枝花市| 独山县|