ropensci-archive/randgeo

add class `geojson_list` to returned value

timelyportfolio opened this issue · 4 comments

As I started testing some experimental sfr geo_json conversion functions (see r-spatial/sf#185 (comment)), I noticed that geo_point and geo_polygon return class list. Would it be possible to also class the return values as geo_list similar to geojsonio?

Thanks so much for this very handy package!

thanks for the issue @timelyportfolio

Yeah, I think so. I'll have a play

@timelyportfolio let me know if that does what you need

@noamross pinging just in case you haven't any thoughts on this

thanks @sckott, does exactly as expected. Now, just need to figure out the best mechanism for sf auto-conversion of geo_json and geo_list since character and list are assumed by sf to be something other than geojson.