osmar

    1热度

    2回答

    我使用osmar包与R,但我想了解一些输出。 一般来说,我想明白这些输出: ua$nodes$attrs ua$nodes$tags ua$ways$attrs ua$ways$tags ua$ways$refs ua$relations$attrs ua$relations$tags ua$relations$refs 特别 这一个:ua$nodes$attrs ua$no

    2热度

    1回答

    我遇到了osm数据编码的麻烦。 下面是使用奥斯马尔包重复的例子: osmData <- osmar::get_osm(osmar::center_bbox(23.334360, 42.693180, 100, 100)) osmData$nodes$tags[80:100, ] #the output is not UTF-8 我还从网上下载https://download.geofabri

    1热度

    1回答

    我已经使用ggplot代码(简化版本的代码)从我在中国的研究地点的栅格对象(来自worldclim的高程数据)创建了一个高程图。相关的栅格对象已从worldclim.org下载并使用栅格包转换为data.frame。这是用于此图的数据的link。 # load library library("tidyverse") load(file = "gongga.RData") ggplot()

    0热度

    2回答

    R中的osmar包中包含一个名为demo("navigator")的演示文件。它提供了说明包的功能和功能。当我十剧本,我打下面的行和错误: R> muc <- get_osm(muc_bbox, src) sh: osmosis: command not found Error in file(con, "r") : cannot open the connection In additio

    4热度

    1回答

    我尝试将具有多行的空间对象(从OSM检索到的河流)转换为KML。对于单行的对象,使用kmlLine很容易。然而,多行下面的方法是不工作,我尝试从the documentation适应的例子是徒劳的: # get OSM data: library(osmar) library(maptools) salzach <- get_osm(relation(408582), full = T)

    2热度

    1回答

    我想添加一组相关的并给出分区边界的方法。 我尝试以下,但卡住了起来: require(osmar) require(XML) # a set of open street map ways (lines) related as given by a relation.. # (if connected these ways represent the boundary of a polit