Arcgis 訪問Oracle spatial空間資料__Oracle

來源:互聯網
上載者:User

1.通過SQLPlus執行如下SQL命令

SQL>colcomp_name format a10;

SQL>selectcomp_name,status from dba_registry where comp_name='Spatial';

如果結果類型如下則說明安裝成功(狀態為VALID或是LOADED都可以)

2.可以通過如下命令檢查SPATIAL安裝的版本

SQL> select sdo_versionfrom dual;

3.常規流程shpfile匯入OracleSpatial

²  使用shp2sdo.exe和oracle內建工具(sqlplus和sqlldr)來完成,下載shp2sdo工具地址如下:

http://www.oracle.com/technology/software/products/spatial/files/shp2sdo.zip

運行shp2sdo.exe

4.按提示錄入,主要是前兩個,要匯入的shpfile檔案位置和匯出檔案位置,產生.sql、.ctl和.dat三個檔案,產生的檔案和shp2sdo.exe位於同一目錄下。

5.通過SQL Plus執行上步產生的.sql檔案,以下命令供參考

 

 

6.上傳資料到上一步建立的空間表中,以下命令供參考

sqlldruserid=prod/prod control=C: \city.ctl data=C: \city.dat

7.最後建立空間索引,以下命令供參考

createindex IDX_tablename on tablename (Geometry_cloumName) indextype ismdsys.spatial_index;

8.最後通過arcmap10.0提供的查詢功能可以看到匯入的空間資料

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.