0

如何在R中将形状转换为多边形?有,但shape2poly(shapefiles)这个功能已被删除,是否shapefiles仍然是用于在 R 中处理地图的包?maptoolsspdep

4

1 回答 1

2

我倾向于使用 OGR 的东西,因为它可以让我处理来自一系列来源(地理数据库、kml 等)的数据。

library(rgdal)
mylayer <- readOGR(dsn="/path/to/folder/containing/shapefile",
                   layer="shapefilename-minus-dot-shp")
于 2013-06-24T18:50:19.243 回答