Skip to main content
15 events
when toggle format what by license comment
Apr 23, 2020 at 9:48 answer added XIAOSUNNIHAO timeline score: 0
Dec 4, 2018 at 23:10 vote accept Emily
Dec 4, 2018 at 23:07 answer added elmuertefurioso timeline score: 2
Dec 4, 2018 at 22:51 comment added Emily I wasn't familiar with sf (super new to spatial stuff in R) but your suggestions have been brilliant and work perfectly! if you want to post an answer I'll be happy to accept it. It would be great to address going from sf to spatial for writing an edited polygon back into Arc, but I can add that once I figure it out soon
Dec 4, 2018 at 21:55 comment added elmuertefurioso Can you import your other spdf as a simple features object and use st_intersects?
Dec 4, 2018 at 21:28 comment added Emily Intersect with another spdf and calculate area, perimeter etc within features of that spdf. When I try to intersect I get "no method for coercing this S4 class to a vector"
Dec 4, 2018 at 21:26 comment added elmuertefurioso Why do you need a spatial polygon dataframe, specifically? What are you trying to do? Your simple features object is the same thing but wrapped in one dataframe-like object.
Dec 4, 2018 at 21:26 history edited Emily CC BY-SA 4.0
deleted 31 characters in body; edited title
Dec 4, 2018 at 21:26 history edited PolyGeo CC BY-SA 4.0
edited title
Dec 4, 2018 at 21:12 history edited Emily CC BY-SA 4.0
clean up
Dec 4, 2018 at 21:05 comment added elmuertefurioso What do you mean by same information? Reading in with st_write() preserves all of the info of your file including projection, number of objects, and attribute data. Maybe edit the question for clarification.
Dec 4, 2018 at 21:04 comment added Emily No, I don't get the same warning, but I am now struggling with how to convert to a SpatialPointsDataFrame after reading in that way, to have all the same info as I would have using shapefile or readOGR. An answer addressing that would be awesome, and I could edit my question
Dec 4, 2018 at 20:56 comment added elmuertefurioso Did you get this same warning when using sf::st_read()?
Dec 4, 2018 at 20:48 history edited Emily CC BY-SA 4.0
added 9 characters in body
Dec 4, 2018 at 20:43 history asked Emily CC BY-SA 4.0