Spatial Objects of the Czech Republic

Administrative regions and other spatial objects of the Czech Republic.

This project downloads a set of shapefiles relevant to the Czech Republic. It was inspired by the popular tigris package for US datasets.

Kraje České republiky

The shapefiles are based on ArcČR 500 ( with some adjustments:

  • the encoding was adjusted to handle Czech accents correctly in R
  • coordinate reference system was changed from a local CRS (S-JSTK) to global WGS84 (EPSG:4326)
  • demographic data were removed, as they get out of date rather fast and are very easy to re-attach using the sf and tidyverse workflow
  • the shapefiles were slightly simplified to fit into memory better

The default resolution is 1 meter; this makes the shapefiles 1) very accurate and 2) rather large. This level of detail is not always necessary, and often not beneficial - a lower resolution shapefile is not only smaller in memory, but also smoother and more aesthetically pleasing. For the most commonly used shapes (republika, kraje and okresy) an optional low resolution version is also included. To access it specify the value of resolution parameter as "low" (default is "high").

Using of the lo-res versions does not require a working internet connection. To use the high resolution (default) shapefile a working intenet connection is necessary, as the data files were too big to meet the CRAN requirements on package size and must be stored externally. Access to the external files is logged, from time to time I check the logs (mainly to understand my bandwidth charges).

A note to Czech users

Tohle je "oficiální", a tedy anglické, readme. Českou verzi naleznete na


The package is on CRAN (as of March 2018) so to get a stable version simply run:


You can also get the latest development version by running devtools::install_github("jlacko/RCzechia") and the last version built on sp instead of sf package by running devtools::install_github("jlacko/RCzechia", ref = "v0.1.4").

The following spatial objects are included:

  • republika: borders of the Czech Republic
  • kraje: 14 regions of the Czech Republic + Prague.
    Key is KOD_CZNUTS3 (CZ NUTS3 code).
  • okresy: 76 districts (LAU1 areas) of the Czech Republic + Prague (legally not a district but the capital).
    Key is KOD_LAU1 (CZ LAU1 code).
  • orp_polygony 205 municipalities with extended powers (in Czech: obce s rozšířenou působností) + Prague (legally not a city but the capital).
    Key is KOD_ORP.
  • obce_polygony: 6.258 municipalities of the Czech Republic.
    Key is KOD_OBEC, also contained are KOD_ORP (code of municipality with extended powers; see above) and KOD_POV (kód pověřené obce)
  • obce_body the same as obce_polygony, but centroids instead of polygons.
    Key is again KOD_OBEC.
  • casti: primarily 57 city parts of Prague, but also of other cities with defined parts (Brno, Ostrava..).
    Key is KOD.
  • reky: streams and rivers
  • plochy: stillwaters (lakes and ponds).
  • silnice: roads (highways, speedways etc.)
  • zeleznice: railroads
  • chr_uzemi: protected natural areas (Chráněná území)
  • lesy: woodland areas (more than 30 ha in area)

All objects are implemented as functions returning data frames, so must be followed by brackets (i.e. hranice <- republika()).


version 1.3.3

  • upgraded shapefile downloads from http:// to https://

version 1.3.2

  • updated vignette (Czech Population) to reflect changes in readxl package

version 1.3.1

  • replaced internally utils::download.file() by curl::curl_download() to improve compatibility

version 1.3.0

  • new objects / functions added: silnice, zeleznice, chr_uzemi and lesy
  • updated vignette to reflect changes in tmap package (v.1.x -> v.2.0)

version 1.2.6

  • fixing of bugs introduced by 1.2.5 on some windows machines

version 1.2.5

  • added support for local cache to speed up calculation and save bandwidth

version 1.2.4

  • added function union_sf to aggregate sf data frames
  • corrected typos in documentation (NUTS2 vs. NUTS3 in obce)
  • unit tests optimized

version 1.2.3

  • low resolution shapefiles added for republika, kraje and okresy
  • internet connection not required for using lo-res shapefiles
  • dependency on tidverse replaced by dplyr

version 1.1.1

  • [!] this is the the first CRAN version
  • [!] to make the package pass CRAN size requirements data files were changed from internal to external (internet connection required to load)
  • a development version is available on
  • if you have any questions or suggestions, please contact me (jindra dot lacko at gmail dot com)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.7.0 by Jindra Lacko, 3 days ago

Report a bug at

Browse source code at

Authors: Jindra Lacko

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

MIT + file LICENSE license

Imports curl, httr, jsonlite, magrittr

Depends on sf

Suggests raster, czso, units, ggplot2, stringr, rvest, xml2, scales, knitr, testthat, roxygen2, devtools, rmarkdown, dplyr, lwgeom, covr

See at CRAN