RCzechia Travis-CI Build Status Coverage Status CRAN Downloads-total Downloads-weekly

This project creates a set of shapefiles relevant to the Czech Republic.

Kraje České republiky

The shapefiles are based on ArcČR 500 (https://www.arcdata.cz/produkty/geograficka-data/arccr-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 http://www.jla-data.net/cze/package-rczechia/

Installation

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

install.packages("RCzechia")

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:

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