2
我想在特定位置提取shapefile值。我正在使用的shapefile可以找到here,點擊Download IHO Sea Areas
下載。形狀文件包含所有可能的海域。提取shapefile值以指向R
我可以閱讀和使用繪製它:
require("maptools")
require(rgdal)
require(sp)
ogrListLayers("World_Seas.shp")
shape <- readOGR("World_Seas.shp", layer="World_Seas")
不過,我想提取特定位置的海價值,說
p <- c(-20, 40)
你希望在這一點上是什麼樣的 '價值'?海拔?但根據定義,這應該是零。任何其他價值? – Felix