Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在R中将形状转换为多边形?有,但shape2poly(shapefiles)这个功能已被删除,是否shapefiles仍然是用于在 R 中处理地图的包?maptoolsspdep
shape2poly(shapefiles)
shapefiles
maptools
spdep
我倾向于使用 OGR 的东西,因为它可以让我处理来自一系列来源(地理数据库、kml 等)的数据。
library(rgdal) mylayer <- readOGR(dsn="/path/to/folder/containing/shapefile", layer="shapefilename-minus-dot-shp")