R_Extracting coordinates from SpatialPolygonsDataFrame

后端 未结 5 783
無奈伤痛
無奈伤痛 2020-12-31 11:52

Is it only me who have the problem with extracting coordinates of a polygon from SpatialPolygonsDataFrame object? I am able to extract other slots of the object

5条回答
  •  無奈伤痛
    2020-12-31 12:36

    Finally, I figured out that I didn't parse the output correctly. The correct way to do is bdryData@polygons[[2]]@Polygons[[1]]@coords. Mind the difference in command polygons(Polygons and polygons) and it took me ages to find out.

提交回复
热议问题