ropensci / osmdata

R package for downloading OpenStreetMap data
https://docs.ropensci.org/osmdata
317 stars 45 forks source link

multipolygon bug #107

Closed mpadge closed 6 years ago

mpadge commented 6 years ago

osmdata_sf() (and presumably _sp()) can return empty multipolygon geometries. The following code reproduces

> graph <- opq ("salzburg") %>%
      add_osm_feature (key = "highway") %>%
      osmdata_sf ()
> graph$osm_multipolygons$geometry [[42]]
# MULTIPOLYGON (EMPTY)

These should not be returned

mpadge commented 6 years ago

closed with this commit