2011-11-09 48 views
0

我試圖使用導入shape文件到Postgres的以下內容:導入Shape文件到Postgres的

shp2pgsql c:\location\water_areas.shp water > water.sql 

我收到以下消息:

c:\location\water_areas.shp: shape (.shp) or index file (.shx) can not be opened, will just import attribute data. 

不幸的是,我需要的不僅僅是屬性數據。我需要幾何列。請幫忙。爲什麼它不打開轉換的shape文件。

+0

http://gis.stackexchange.com/questions/16760/import-shapefile-to-postgres –

回答

3

無需任何額外的信息,也沒有辦法回答你的問題。該錯誤消息表明應用程序未找到一個或多個文件組件。嘗試使用相對路徑在'location'目錄內運行應用程序,並查看是否發生了更改。