Closed Robinlovelace closed 5 years ago
Will get to this at some point!
I'm up for giving it a bash (or should I say a crash ; )
I'm up for giving it a bash (or should I say a crash ; )
Will be great Robin.
I have prep'ed this using osmdata, happy to add it in. Screen shot from gp_sf()
of course, which is related to the traffic data already in geoplumber.
Of course subset it with road names.
Looks quite disconnected. But yes, that will provide at least 3 layers. Only missing layer type is polygons when that goes in an there's open data on that.
I think the disconnect is more to do with the roads where sample was taken, yes I can see potential within road disconnects, too.
Just remembered, I have done this rather big (13mb only geometry) network using awesome osmdata @Robinlovelace, not sure if that is what you mean in the other thread with @mpadge.
It's too big to fit on CRAN as an example dataset (5MB limit). Suggest creating a 'core network', e.g. only A and B roads and ones with traffic counts on and ones that connect between them. Creating a minimal (~100 kB) core network in a small area of London is not as simple as it first may seem!
Creating a minimal (~100 kB) core network in a small area of London is not as simple as it first may seem!
Correct.
Primary roads only, 1,107,896 bytes
Better say: 244,496 bytes "only" geometry for above network of primary roads. I will leave it there, I have these saved in a separate project if we need them.
Looking good, suitable example dataset. Worth including with usethis::use_data("traffic_network")
and documenting in data.R
? I suspect so!
Will do!
If you are happy we can tick the second check box @Robinlovelace :)
Note: this type of data (one column geom sf objects) currently not "properly" rendered by geoplumber pending a slight change in #51 related to an underlying package.
Fantastic work, job done!
Related issue is that I cannot get it to show with gp_sf()
even after coercing it to sf
class. can you reproduce this? Job done in any case!
devtools::install_github("ATFutures/geoplumber")
library(geoplumber)
sf:::plot.sfc_LINESTRING(traffic_network)
gp_create()
setwd("geoplumber/")
gp_sf(traffic_network) # error
tn = sf::st_sf(traffic_network)
gp_sf(tn) # not showing
Note: this type of data (one column geom sf objects) currently not "properly" rendered by geoplumber pending a slight change in #51 related to an underlying package.
Aha yes thanks for the clarification!
Allow different layers to be shown.