Split polygon parts of a single SpatialPolygons Object

前端 未结 4 2181
长发绾君心
长发绾君心 2021-02-20 02:50

In R, I have single SpatialPolygons object (i.e. multi-polygons) containing several hundred polygons. I would like to split this SpatialPolygons object

4条回答
  •  深忆病人
    2021-02-20 03:09

    If your SpatialPolygons object is called mysp...

    out <- lapply( mysp@polygons , slot , "Polygons" )
    

提交回复
热议问题