【问题标题】:Use osmar to load all data from an OSM file使用 osmar 从 OSM 文件加载所有数据
【发布时间】:2015-06-14 14:35:31
【问题描述】:

osmar 的标准工作流程是:

src <- osmsource_osmosis(file = "my_place.osm")
muc_bbox <- center_bbox(11.575278, 48.137222, 3000, 3000)
muc <- get_osm(muc_bbox, src)

但是如果我想从myplace.osm 加载所有数据并且不知道先验边界框怎么办?

似乎没有明显的方法来获取包含所有数据的边界框,或者告诉get_osm 加载所有内容。

【问题讨论】:

    标签: r openstreetmap osmar


    【解决方案1】:

    我使用默认框角参数进行渗透:

    muc_bbox <- corner_bbox(left = -180, right = 180, top = 90, bottom = -90)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 1970-01-01
      • 2021-11-26
      • 1970-01-01
      • 2012-01-17
      相关资源
      最近更新 更多