Split polygon parts of a single SpatialPolygons Object

前端 未结 4 2242
长发绾君心
长发绾君心 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:10

    This will return a list of SpatialPolygons instead of ordinary Polygons (which some of the answers do).

    SpP %>% split(1:length(.))
    

提交回复
热议问题