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