::: {.cell hash='08_Maps_cache/revealjs/unnamed-chunk-76_5d30ea68decf9793dfafa2665e2252f9'}

```{.r .cell-code}
library(units)
all_airports <- read_sf("data/ne_10m_airports.shp") %>%
  st_transform(aea)
cities <- read_sf("data/italian-cities.shp") %>%
  st_transform(aea) %>%
  st_intersection(italy %>% st_transform(st_crs(all_airports)))
cities
```

::: {.cell-output .cell-output-stdout}
```
Simple feature collection with 7828 features and 122 fields
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 530536.4 ymin: 3826849 xmax: 1560109 ymax: 5092362
Projected CRS: +proj=aea +lat_1=29.5 +lat_2=42.5
# A tibble: 7,828 × 123
   city       featurecla scalerank adm1_code diss_me iso_3166_2 wikipedia iso_a2
 * <chr>      <chr>          <int> <chr>       <int> <chr>      <chr>     <chr> 
 1 "EMARÔSE"  Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 2 "F\u0090N… Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 3 "VERRÔS"   Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 4 "ALLEIN"   Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 5 "ANTEY-SA… Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 6 "AOSTA"    Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 7 "ARNAD"    Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 8 "ARVIER"   Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
 9 "AVISE"    Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
10 "AYAS"     Admin-1 s…         3 ITA-5442     5442 IT-AO      <NA>      IT    
# ℹ 7,818 more rows
# ℹ 115 more variables: adm0_sr <int>, name <chr>, name_alt <chr>,
#   name_local <chr>, type <chr>, type_en <chr>, code_local <chr>,
#   code_hasc <chr>, note <chr>, hasc_maybe <chr>, region <chr>,
#   region_cod <chr>, provnum_ne <int>, gadm_level <int>, check_me <int>,
#   datarank <int>, abbrev <chr>, postal <chr>, area_sqkm <int>,
#   sameascity <int>, labelrank <int>, name_len <int>, mapcolor9 <int>, …
```
:::
:::