围绕创建空间数据缓存我有商场的空间数据集,我想在R.R中
周围创建缓冲区我想这些包将是有益的:
require(maptools)
require(geosphere)
我能够为一组坐标而不是空间数据。代码如下所示:
coordinates(locs) <- c("Longitude", "Latitude") # set spatial coordinates
fivekm <- cbind(coordinates(locs), X=rowSums(distm (coordinates(locs)[,1:2], fun = distHaversine)/1000 <= 5)) # number of points within 5 km
但是我不知道用于一组多边形的函数/包。有人可以请告知功能(或代码),我会从那里去?
谢谢!
谢谢! @Ege Rubak。 – JAG2024