ropensci / osmplotr

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

osm_line2poly limitations #37

Open richardbeare opened 6 years ago

richardbeare commented 6 years ago

Hi, I don't have time to track this down at present, but the following bounding box leads to incorrect behaviour in osm_line2poly for this bit of coastline

bbox.F <- rbind(c(min= 144.75, max = 145.6),
                c(min= -38.41, max = -37.75))
rownames(bbox.F) <- c("x", "y")

I think the problem is cause by multiple cutting of peninsulas.

May be that the current approach is too simple, and that we need to do something quite complex, probably requiring sf, unfortunately.