您请求的节点过多(限制为 50000)。要么请求更小的区域,要么使用planet.osm
我正在使用 http://www.openstreetmap.org/ 导出实用程序来生成 区域的 .osm(xml 映射文件),以便稍后生成 .map 文件 渗透,但我无法提取 .osm,因为我收到此错误:
“您请求了太多节点(限制为 50000)。要么请求一个 较小的区域,或使用planet.osm”
如何生成超过50.000个节点的地图?如何使用 星球.osm?我被屏蔽了:S
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如消息所述,如果您需要处理大量数据,通常有两种选择:
As the message says, if you need to process large amount of data, you generally have two options:
我最喜欢的方法是使用 Overpass API。操作方法如下:
将类似内容放入 http://www.overpass-api.de 的查询表单中/query_form.html,将四个边界线 s、n、w 和 e 更改为所需数据的南边、北边、西边和东边。 (使用 OpenStreetMap 导出选项卡拖出一个矩形并获取边界。)
我直接从好权威:立交桥开发商之一。我已经成功使用了。一个附带条件:它递归两次,以获取与矩形重叠的关系成员的所有路径,然后获取这些路径中的所有点。
该脚本将超时设置为 10,000 秒,并将元素限制设置为适当大的数字。
My favourite way is to use the Overpass API. Here's how:
Put something like this into the query form at http://www.overpass-api.de/query_form.html, changing the four bounding edges s, n, w, and e to the southern, northern, western and eastern edges of your desired data. (Use the OpenStreetMap export tab to drag out a rectangle and get the bounds.)
I got this method straight from a good authority: one of the Overpass developers. I have used it successfully. One proviso: it recurses twice, to get all the ways that are members of relations overlapping the rectangle, then to get all the points in those ways.
The script sets the timeout to 10,000 seconds and the element limit to a suitably large number.
有多种方法从 OpenStreetMap 下载原始地图数据,从小块到通过API(您需要更大的区域)到下载整个地球(比您需要的数据更多)。
在中间地带,可以选择下载国家或城市(更像是这样)。或者正如 graham asher 指出的那样,OverpassAPI 是一个灵活的 API,适用于较大的区域。
我有一个工具“XAPI Query Builder”,这使得它很容易计算输出旧式 XAPI/OverpassAPI URL(现在有点过时)或 Osmosis 命令。
一旦您获得所需的数据区域作为文件,例如 bremen.osm ...
来自 MapsForge 文档:
“
使用 XML 格式编写不来梅地图文件并写入文件 /tmp/bremen.map,将地图起始位置设置为不来梅 HBF:
”
看起来相当不错很清楚,但也许你之前就陷入困境了。您是否安装了 osmosis 和使用地图编写器插件进行设置?
There are several ways to download raw map data from OpenStreetMap ranging from small bite-sized chunks via the API (you need larger areas) through to downloading the whole planet (more data than you need).
In the middleground there's options to download pre-prepared files for countries or cities (that's more like it). Or as graham asher points out, the OverpassAPI is a flexible a API which works for largish areas.
I have a tool "XAPI Query Builder", which makes it easy to figure out an old style XAPI/OverpassAPI URL (bit outdated these days) or alternatively an Osmosis command.
Once you have got the desired area of data as file such as bremen.osm ...
From the MapsForge documentation :
"
Write map file for Bremen using XML format and writing into file /tmp/bremen.map, setting map start position to Bremen HBF:
"
Seems fairly clear, but maybe you're getting stuck earlier. Did you install osmosis and set it up with the map-writer plugin?