Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extrair OSM apenas a partir da bbox do concelho #3

Open
temospena opened this issue Nov 9, 2020 · 0 comments
Open

extrair OSM apenas a partir da bbox do concelho #3

temospena opened this issue Nov 9, 2020 · 0 comments

Comments

@temospena
Copy link
Member

Em vez de se ir buscar toda a rede do OSM de Portugal (218mb) pode-se extrair apenas uma bounding box do concelho em questão, usando o package osmdata

lisboa<- opq(bbox = st_bbox(LisboaLimite) %>% 
  add_osm_feature(key = 'highway') %>% 
  osmdata_sf() %>% 
  osm_poly2line()

lisboa<- lisboa$osm_lines %>% 
  select(highway)

mas isto depois precisa de se fazer novamente a limpeza segundo o tutorial.

fonte: https://www.r-spatial.org/r/2019/09/26/spatial-networks.html

@temospena temospena changed the title extrair apenas bbox do concelho a partir do OSM extrair OSM apenas a partir da bbox do concelho Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant