项目作者: patperu

项目描述 :
Spatial Data Files for Berlin (Germany)
高级语言: R
项目地址: git://github.com/patperu/berlingeo.git
创建时间: 2019-07-27T17:12:50Z
项目社区:https://github.com/patperu/berlingeo

开源协议:Other

下载


berlingeo

This package contains spatial data files for various administrative
boundaries in Berlin, Germany and currently one function sf_fisbroker
to convert WKS files from the Berlin Geodata Portal
“FIS-Broker”
in sf objects. I was motivated by the package
nycgeo from Matt Herman.

Data Source: Amt für Statistik Berlin-Brandenburg, Data Licence: Lizenz
CC-BY-3.0

Installation

Development version from GitHub

  1. remotes::install_github("patperu/berlingeo")
  2. library("berlingeo")
  1. library(berlingeo)
  2. library(sf)
  3. #> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
  4. library(tidyverse)
  5. #> -- Attaching packages -------------------------------------------------------------- tidyverse 1.2.1 --
  6. #> v ggplot2 3.2.0.9000 v purrr 0.3.2
  7. #> v tibble 2.1.3 v dplyr 0.8.3
  8. #> v tidyr 0.8.3 v stringr 1.4.0
  9. #> v readr 1.3.1 v forcats 0.4.0
  10. #> -- Conflicts ----------------------------------------------------------------- tidyverse_conflicts() --
  11. #> x dplyr::filter() masks stats::filter()
  12. #> x dplyr::lag() masks stats::lag()

LOR - Prognoseraum

  1. glimpse(lor_pgr_sf)
  2. #> Observations: 60
  3. #> Variables: 7
  4. #> $ gml_id <chr> "s_lor_prog.0101", "s_lor_prog.0102", "s_lor_prog.0...
  5. #> $ RAUMID <chr> "0101", "0102", "0103", "0104", "0201", "0202", "02...
  6. #> $ PGRNAME <chr> "Zentrum", "Moabit", "Gesundbrunnen", "Wedding", "K...
  7. #> $ BEZNAME <chr> "Mitte", "Mitte", "Mitte", "Mitte", "Friedrichshain...
  8. #> $ DATUM <chr> "2007-10-31T00:00:00", "2007-10-31T00:00:00", "2007...
  9. #> $ SHAPE_AREA <dbl> 15844742, 8239538, 5753252, 9611634, 2929465, 47540...
  10. #> $ geometry <MULTIPOLYGON [°]> MULTIPOLYGON (((13.36953 52..., MULTIP...
  11. ggplot(lor_pgr_sf) +
  12. geom_sf() +
  13. theme_minimal()

LOR - Bezirksregion

  1. glimpse(lor_bzr_sf)
  2. #> Observations: 138
  3. #> Variables: 8
  4. #> $ gml_id <chr> "s_lor_bez.010111", "s_lor_bez.010112", ...
  5. #> $ RAUMID <chr> "010111", "010112", "010113", "010114", ...
  6. #> $ BEZIRKSREGION <chr> "Tiergarten Süd", "Regierungsviertel", "...
  7. #> $ PROGNOSERAUM <chr> "Zentrum", "Zentrum", "Zentrum", "Zentru...
  8. #> $ BEZIRK <chr> "Mitte", "Mitte", "Mitte", "Mitte", "Mit...
  9. #> $ DATUM_GUELTIG_AB <chr> "2006-06-14 00:00:00.0", "2006-06-14 00:...
  10. #> $ FLAECHENGROESSE_IN_M2 <dbl> 366755.5, 744742.1, 1685341.1, 1151740.5...
  11. #> $ geometry <MULTIPOLYGON [°]> MULTIPOLYGON (((13.36953 52...
  12. ggplot(lor_bzr_sf) +
  13. geom_sf() +
  14. theme_minimal()

LOR - Planungsraum

  1. glimpse(lor_plr_sf)
  2. #> Observations: 448
  3. #> Variables: 9
  4. #> $ gml_id <chr> "s_lor_plan.01011101", "s_lor_plan.01011...
  5. #> $ RAUMID <chr> "01011101", "01011102", "01011103", "010...
  6. #> $ PLANUNGSRAUM <chr> "Stülerstraße", "Großer Tiergarten", "Lü...
  7. #> $ BEZIRKSREGION <chr> "Tiergarten Süd", "Tiergarten Süd", "Tie...
  8. #> $ PROGNOSERAUM <chr> "Zentrum", "Zentrum", "Zentrum", "Zentru...
  9. #> $ BEZIRK <chr> "Mitte", "Mitte", "Mitte", "Mitte", "Mit...
  10. #> $ DATUM_GUELTIG_AB <chr> "14.06.2006", "14.06.2006", "14.06.2006"...
  11. #> $ FLAECHENGROESSE_IN_M2 <int> 366756, 3009397, 522357, 338383, 934610,...
  12. #> $ geometry <MULTIPOLYGON [°]> MULTIPOLYGON (((13.33889 52...
  13. ggplot(lor_plr_sf) +
  14. geom_sf() +
  15. theme_minimal()

Convert WKS dataset to a sf (simple features) object

  1. sf_fisbroker("s_erhaltgeb_es") %>%
  2. ggplot() +
  3. geom_sf() +
  4. theme_minimal()
  5. #> [1] "http://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_erhaltgeb_es?service=wfs&version=2.0.0&request=GetFeature&TYPENAMES=s_erhaltgeb_es"

Please note that the ‘berlingeo’ project is released with a Contributor
Code of Conduct
. By contributing to this project,
you agree to abide by its terms.