0

我正在尝试实现 osrm 服务器,我有 4 GB RAM 的 AWS Ubuntu 服务器实例。我已经从导出https://www.openstreetmap.org导出印度地图数据,下载为 map.xml,现在当我尝试使用 osrm-extract命令提取时出现以下错误

ubuntu@~/osrm-backend$ osrm-extract map.xml -p profiles/foot.lua
[info] Parsed 0 location-dependent features with 0 GeoJSON polygons
[info] Using script profiles/foot.lua
[info] Input file: map.xml
[info] Profile: foot.lua
[info] Threads: 2
[info] Parsing in progress..
[info] input file generated by Overpass API 0.7.54.13 ff15392f
[info] timestamp: n/a
[info] Using profile api version 2
[info] Parse relations ...
[info] Parse ways and nodes ...
[info] Parsing finished after 0.005743 seconds
[info] Raw input contains 0 nodes, 0 ways, and 0 relations, 0 restrictions
terminate called after throwing an instance of 'osrm::util::exception'
what(): There are no edges remaining after parsing.src/extractor/extractor.cpp:623
Aborted (core dumped)
4

1 回答 1

1

[信息] 原始输入包含 0 个节点、0 个方式和 0 个关系,0 个限制... what(): 解析后没有剩余边.src/extractor/extractor.cpp:623

这表明您的 map.xml 中没有可步行的方式,因此路由图是空的。我需要检查您的 map.xml 中是否至少有一些高速公路= 方式,或其他一些可步行的方式。

于 2018-02-23T19:54:36.597 回答