R中将点转换为网格
我有一个纬度和经度,
locs <- structure(list(Latitude = 0.176094639, Longitude = 117.4955225), row.names = 1L, class = "data.frame")
我想将其转换为尺寸为 5 公里 X 5 公里的方形多边形网格并保存形状文件。我似乎无法在 R 中找到一个函数来执行此操作,想知道是否有人做过 类似的工作?
I have a latitude and longitude
locs <- structure(list(Latitude = 0.176094639, Longitude = 117.4955225), row.names = 1L, class = "data.frame")
I want to convert this into a square polygon grid with dimension of 5 km X 5 km and save the shapefile. I can't seem to find a function in R to do this and wondering if anyone has done
similar work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您提供的点是您想要的网格的中心,
由 reprex 包 (v2.0.1)
Assuming that the point you provided is the center of the grid you want,
Created on 2022-03-24 by the reprex package (v2.0.1)