What's wrong with this administrative border? It seems to have all the proper tags, but doesn't appear when being plotted in an external application

The problematic boundary in question: Way: ‪Grad Zaprešić / Općina Bistra‬ (‪1067231608‬) | OpenStreetMap

It seems to have all the proper tags and that it is added to all the necessary relations. However, when I try to plot it in R, it just doesn’t appear. Here is the code from R and image that is produced.

library(osmdata)
library(sf)
library(tidyverse)
theme_set(theme_classic())

bb <- getbb("Zaprešić", featuretype = "city", format_out = "polygon")

boundaries <- getbb("Zaprešić", featuretype = "city") %>% 
  opq() %>% 
  add_osm_feature(key = "boundary", value = "administrative") %>% 
  osmdata_sf() %>% 
  trim_osmdata(bb)

ggplot(boundaries$osm_lines) +
  geom_sf()

As you can see, the top right part of the border is missing. It is likewise missing in the neigbouring municipality of Bistra:

bb <- getbb("Općina Bistra", featuretype = "city", format_out = "polygon")

boundaries <- getbb("Općina Bistra", featuretype = "city") %>% 
  opq() %>% 
  add_osm_feature(key = "boundary", value = "administrative") %>% 
  osmdata_sf() %>% 
  trim_osmdata(bb)

ggplot(boundaries$osm_lines) +
  geom_sf()

On OpenStreetMap both Zaprešić and Bistra look like their border is fully defined:

image

So I am wondering what’s wrong and what is missing here. Any help would be appreciated!

4 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/whats-wrong-with-this-administrative-border-it-seems-to-have-all-the-proper-tags-but-doesnt-appear-when-being-plotted-in-an-external-application/4606