【问题标题】:Runtime error using osm overpass query使用 osm overpass 查询的运行时错误
【发布时间】:2016-03-13 22:30:51
【问题描述】:

我安装了如中所述的立交桥 http://wiki.openstreetmap.org/wiki/Overpass_API/install

我克隆了数据库。

当我运行一个简单的查询时,我收到以下错误:

<query type="node">
<bbox-query n="51.0" s="50.9" w="6.9" e="7.0"/>
<has-kv k="amenity" v="pub"/>
</query>
<print/>
encoding remark: Your input starts with a tag but not the root tag.
Thus, a line with the datatype declaration and a line with the root tag
'osm-script' is added. This shifts line numbering by -2 line(s).

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API">
<note>
The data included in this document is from ww.openstreetmap.org.
The data is made available under ODbL.
</note>
<meta osm_base=""/>

After 0h0m15s: in "query", part 1, on line 3.
terminate called after throwing an instance of 'Zlib_Inflate::Error'
what():  Zlib_Inflate: -3
Aborted (core dumped)

你知道我该如何解决这个问题吗?

【问题讨论】:

  • 尝试通过github.com/drolbr/Overpass-API报告您的问题
  • 2 个问题:您安装了哪个确切版本(请提供下载位置的链接),以及您如何克隆数据库(即您从哪里下载数据库文件)?在我看来,您正在尝试使用在未启用 Zlib 压缩的情况下创建的数据库文件。但是,您使用的 Overpass API 版本需要 Zlib。
  • 我使用了本指南:(overpass-api.de/no_frills.html) 使用以下命令克隆了数据库:nohup bin/download_clone.sh --source=dev.overpass-api.de/api_drolbr --db-dir="db /" --meta=yes
  • 好的,克隆文件似乎与 0.7.52 版本不匹配。如需解决此问题,请通过邮件与 Roland 联系,详情请参阅this Wiki 页面。
  • 在此期间您是否收到了一些反馈?

标签: openstreetmap overpass-api


【解决方案1】:

我下载的文件已损坏,我重新下载它们并与发布的校验和进行比较,一切正常

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-31
    • 2013-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多