大面积下载OSM数据

Downloading OSM data for large area

我正在尝试从公开的街道地图中提取整个墨尔本市的道路网络。城市的bounding box大致为min_lon: 144.27, min_lat: -38.57, max_lon: 145.60, max_lat: -37.56。然而,由于这个区域相当大,大多数API无法处理这个查询(例如,我尝试从https://www.openstreetmap.org下载,并在QGIS中立交桥API,不幸的是,none 他们工作)。

基本上,我只需要墨尔本市所有高速公路的道路类型和坐标。知道如何使用 OSM 或其他资源提取此类图表吗?

OpenstreetMap 状态:

This area is too large to be exported as OpenStreetMap XML Data. Please zoom in or select a smaller area, or use one of the sources listed below for bulk data downloads.

如果您将您的区域分成 4 个部分,我不会因为超时而出现错误,使用立交桥 API。

map1:  <bounds minlat="-39.0800000" minlon="143.6833000" maxlat="-37.9193000" maxlon="145.3175000"/>
map2:  <bounds minlat="-38.0000000" minlon="143.6833000" maxlat="-37.0000000" maxlon="145.3175000"/>
map3:  <bounds minlat="-39.0000000" minlon="145.0000000" maxlat="-38.0000000" maxlon="146.0000000"/>
map4:  <bounds minlat="-38.0000000" minlon="145.0000000" maxlat="-37.0000000" maxlon="146.0000000"/>

注意:我没有测试该区域之间是否应该有(小的)重叠。 (也不是为了最终拥有所有数据而应该重叠多小)

OSM API 不适用于批量下载。 API的主要目的是编辑地图。

您可以通过下载完整的planet or via country or area extract. Afterwards you can split the file into even smaller regions, for example by using osmium-extract from osmium-tool来下载更大的区域。