【发布时间】:2016-10-10 00:36:11
【问题描述】:
我在 R 中有一张土地覆盖数据地图,想要裁剪一个特定区域的圆圈,比如 20 公里,然后提取生成的圆形 shapefile。
# read in the shape file, assign the CRS and plot it
area <- readShapePoly("Corrine Land Use ITM Projection - Copy.shp", proj4string = CRS("+init=epsg:2157"))
plot(area, xlim = c(560000,600000), ylim = c(530000,580000), axes=TRUE)
# create a dataframe of the location where the buffer should be made and plot it
locations<-data.frame(latitude=584503.3,longitude = 560164.5)
points(locations, bg='tomato2', pch=21, cex=3)
在执行此操作之前,我是否需要先将我的点更改为坐标系? 形状文件是 Corine Landcover 2012 - National http://gis.epa.ie/GetData/Download
谢谢
【问题讨论】:
-
你能指导我们更清楚地使用你使用的 shapefile 吗?在网站上找不到。
标签: r coordinates gis spatial shapefile