zhyiwww
          用平實(shí)的筆,記錄編程路上的點(diǎn)點(diǎn)滴滴………
          posts - 536,comments - 394,trackbacks - 0

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



          ######################################################################
          ## 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



          |----------------------------------------------------------------------------------------|
                                     版權(quán)聲明  版權(quán)所有 @zhyiwww
                      引用請(qǐng)注明來(lái)源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2009-06-26 16:55 zhyiwww 閱讀(1998) 評(píng)論(0)  編輯  收藏 所屬分類: databaselinuxgisPostgres
          主站蜘蛛池模板: 仲巴县| 永和县| 神木县| 郯城县| 若羌县| 白水县| 宁陕县| 江川县| 孝感市| 青岛市| 晋州市| 汉沽区| 琼海市| 安远县| 日喀则市| 丹棱县| 密山市| 静宁县| 拜泉县| 阿坝县| 黔南| 益阳市| 芦山县| 海城市| 龙海市| 金堂县| 甘孜县| 达日县| 彭水| 浑源县| 寻甸| 高阳县| 阿勒泰市| 平远县| 开化县| 嘉荫县| 克拉玛依市| 开远市| 武鸣县| 鹿泉市| 息烽县|