ropensci / osmplotr

Data visualisation using OpenStreetMap objects
https://docs.ropensci.org/osmplotr
132 stars 21 forks source link

geom_to_xy has no definition for multilinestring #51

Open brry opened 5 years ago

brry commented 5 years ago
library(osmplotr)
bbox <- get_bbox(c(12.481225, 53.169504, 12.681225, 53.269504)); bbox
dat_W <- extract_osm_objects(key="waterway", bbox=bbox, return_type="multilines")
map <- osm_basemap(bbox=bbox, bg='gray95')
map <- add_osm_objects(map=map, obj=dat_W, col="blue")
# Error in geom_to_xy(obj, obj_type) : object 'xy' not found
# obj_type is "multilinestring"

geom_to_xy has no code for obj_type=="multilinestring" https://github.com/ropensci/osmplotr/blob/master/R/add-osm-objects.R#L218

mpadge commented 5 years ago

wow, you're really on to it ... I'll dig into that asap - early next week. Thanks!