【发布时间】:2023-03-26 12:50:02
【问题描述】:
我想在特定位置提取 shapefile 值。我使用的 shapefile 可以在here 找到,点击Download IHO Sea Areas 下载。形状文件包含所有可能的海洋。
我可以阅读并使用:
require("maptools")
require(rgdal)
require(sp)
ogrListLayers("World_Seas.shp")
shape <- readOGR("World_Seas.shp", layer="World_Seas")
但是,我想提取特定位置的海值,比如说
p <- c(-20, 40)
【问题讨论】:
-
那时您期望什么样的“价值”?海拔?但根据定义,这应该为零。还有其他价值吗?