我正在尝试实现osrm服务器,我有4 GB RAM的AWS Ubuntu服务器实例。我已导出从map 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)
答案 0 :(得分:1)
[info]原始输入包含0个节点,0个方向和0个关系,0个限制 ... what():在parsing.src / extractor / extractor.cpp之后没有剩余边缘:623
这表示map.xml中没有可步行的方式,因此路由图是空的。我需要检查你的map.xml中是否至少有一些highway = way,或者其他一些可步行的方式。