Skip to content

Provides city and district data for Turkey

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

emraher/turkeymap

Repository files navigation

turkeymap

The goal of turkeymap is to provide province and district data for Turkey.

Installation

You can install turkeymap from github with:

devtools::install_github("emraher/turkeymap")

tr_provinces <- turkeymap::provinces
tr_districts <- turkeymap::districts

Shapefile Sources for Turkey

HDX

HDX provides the most recent shapefiles for Turkey. You can download shapefiles for Administrative Boundaries from this link.

You can import shp file into R using sf library.

library(tidyverse)
#> ── Attaching packages ─────────────────────────────────────────────── tidyverse 1.3.0 ──
#> ✓ ggplot2 3.3.2     ✓ purrr   0.3.4
#> ✓ tibble  3.0.4     ✓ dplyr   1.0.2
#> ✓ tidyr   1.1.2     ✓ stringr 1.4.0
#> ✓ readr   1.4.0     ✓ forcats 0.5.0
#> ── Conflicts ────────────────────────────────────────────────── tidyverse_conflicts() ──
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()
library(sf)
#> Linking to GEOS 3.8.1, GDAL 3.1.1, PROJ 6.3.1
dt <- st_read("./data-raw/hdx/tur_polbnda_adm2.shp")
#> Reading layer `tur_polbnda_adm2' from data source `/Users/emraher/Dropbox/gitRepos/SourcesOnGitHub/turkeymap/data-raw/hdx/tur_polbnda_adm2.shp' using driver `ESRI Shapefile'
#> Simple feature collection with 973 features and 12 fields
#> geometry type:  MULTIPOLYGON
#> dimension:      XY
#> bbox:           xmin: 25.67 ymin: 35.81 xmax: 44.82 ymax: 42.1
#> geographic CRS: WGS 84
hdx_dt <- st_set_geometry(dt, NULL)

tuik

tuik package also provides functions for mapping data.

Amendments

1990s

2000s

About

Provides city and district data for Turkey

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages