Learn R Programming

RCzechia (version 1.4.3)

RCzechia-package: RCzechia: Spatial Objects of the Czech Republic

Description

A selection of spatial objects relevant to the Czech Republic. Due to CRAN package size requirements (5 MB) the objects are stored externally (on Amazon S3) - and therefore could not be implemented as datasets. They are functions returning data frames instead.

Arguments

Administrative regions

  • republika - borders of the Czech Republic

  • kraje - regions / NUTS3 units

  • okresy - districts / LAU1 units

  • orp_polygony - municipalities with extended powers (obce s roz<U+0161><U+00ED><U+0159>enou p<U+016F>sobnost<U+00ED>)

  • obce_polygony - municipalities as polygons

  • obce_body - municipalities as centroids (points)

  • casti - city districts (for cities that implement them)

Natural objects

  • reky - rivers

  • plochy - water bodies

  • lesy - woodland areas (more than 30 ha in area)

Other objects

  • silnice - roads

  • zeleznice - railoads

  • KFME_grid - grid cells (faunistick<U+00E9> <U+010D>tverce) according to Kartierung der Flora Mitteleuropas methodology

Utility functions

In addition three utility functions are implemented to support spatial workflow:

  • union_sf - merging polygons based on a key value

  • geocode - geocoding (from address to coordinates)

  • revgeo - reverse gecoding (from coordinates to address)

Details

To save time (and bandwidth) the downloaded objects are saved locally in `tempdir` directory when requested, and downloaded at most once per R session; out of respect to CRAN Repository Policy a more permanent caching on user's side is not attempted.

This means that:

  • a working internet connection is required to use the full resolution objects

  • all objects need to be called with (possibly empty) braces

For the most frequently used objects - republika, kraje and okresy - a low resolution version is also implemented. The low resolution data sets are stored locally (and working intenet connection is not necessary to use them).

All objects are implemented as sf data frames.