【问题标题】:error "illegal option --t" occus when import OSM map into postgis [windows environment]将 OSM 映射导入 postgis [windows 环境] 时出现错误“非法选项 --t”
【发布时间】:2015-05-19 11:09:41
【问题描述】:

我想将 OSM 映射导入 postgis,所以在 windows cmd 控制台中使用以下命令:

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

但出现“非法选项--t”错误: osm2pgsql 非法选项 --t 使用错误。

我不知道“非法选项--t”是什么意思,也不知道如何处理。 我看了几篇文章,但没有找到任何答案。 谢谢。

p.s 我已经安装了 postgis 2.1.7 和 postgresql 9.4 和 hstore。

【问题讨论】:

    标签: postgresql openstreetmap postgis


    【解决方案1】:

    您的命令中至少有 2 个错误 -hstore 而不是 --hstore_S 而不是 -S

    所以:

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

    【讨论】:

    • 它有效。谢谢你。我刚开始使用 postgis,所以不熟悉命令。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-02-16
    • 1970-01-01
    • 2019-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-26
    相关资源
    最近更新 更多