2015-05-19 29 views
0

我想導入OSM地圖到PostGIS的,所以在窗口中使用以下命令CMD控制檯:錯誤 「非法選項--t」 occus當進口OSM地圖到PostGIS的[Windows環境]

osm2pgsql -U postgres -d osm -hstore -s _S ./default.style ./xxxx.osm 

但「非法選項--t「error occus: osm2pgsql非法選項--t 使用錯誤。

我不知道「非法選項-t」是什麼意思,不知道如何處理它。 我看了幾篇文章,但沒有找到任何答案。 謝謝。

p.s我安裝了postgis 2.1.7和postgresql 9.4和hstore。

回答

3

您的命令-hstore中至少有2個錯誤,而不是--hstore_S而不是-S

所以:

osm2pgsql -U postgres -d osm --hstore -s -S ./default.style ./xxxx.osm 
+0

它的工作原理。謝謝。我只是開始使用postgis,所以不是與命令類似。 – chwflhs