Timeline for R convert sf object back to SpatialPolygonsDataFrame
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 15, 2017 at 10:46 | history | edited | andschar | CC BY-SA 3.0 |
link changed
|
May 15, 2017 at 14:16 | comment | added | andschar | what does 'truly work like a SPDF' mean? I see no disadvantage created by the conversion. | |
May 15, 2017 at 11:50 | comment | added | Simon |
For this to truly work like a SPDF, I needed to do something like: tmp <-as(nc, 'Spatial') , then tmpid <- sapply(slot(tmp, "polygons"), function(x) slot(x, "ID")) then row.names(tmp) <- tmpid
|
|
May 6, 2017 at 2:05 | comment | added | Kazuhito | And it is important the accepted answer will not be overlooked by future readers. | |
May 5, 2017 at 7:46 | comment | added | andschar | saw it. However I figured this out only recently and I felt the urge to put it into a proper answer when seeing this question ;) | |
May 5, 2017 at 1:08 | vote | accept | Simon | ||
May 4, 2017 at 16:31 | history | answered | andschar | CC BY-SA 3.0 |