Title: | Download various datasets (including spatial data) for the Czech Republic |
---|---|
Description: | Download various datasets (including spatial data) for the Czech Republic. |
Authors: | Jan Caha [aut, cre] |
Maintainer: | Jan Caha <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.6.1 |
Built: | 2024-11-19 06:13:42 UTC |
Source: | https://github.com/JanCaha/CzechData |
Czech statistical office uses different codes to identify RUIAN elemnts. This dataset should act as converter of codes from data from CSU to link them with spatial data of RUIAN.
ciselnik_CSU
ciselnik_CSU
A data frame with 206 rows and 4 variables:
type of spatail unit
id of spatial unit used by csu
id of spatial unit used by ruian
https://www.czso.cz/csu/czso/ciselniky
Create citation string as per terms of use (https://geoportal.cuzk.cz/Dokumenty/Podminky_EN.pdf).
generate_Data200_citation() generate_Data50_citation()
generate_Data200_citation() generate_Data50_citation()
character
with citation.
generate_Data200_citation()
: Generate citation for Data200 datasource.
generate_Data50_citation()
: Generate citation for Data50 datasource.
generate_Data50_citation() generate_Data200_citation()
generate_Data50_citation() generate_Data200_citation()
A dataset containing the names and other attributes of all 13,078 cadastral territories in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
katastralni_uzemi
katastralni_uzemi
A data frame with 13078 rows and 9 variables:
id of the cadastral territory
name of the cadastral territory
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
A dataset containing the names and other attributes of all 14 regions in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
kraje
kraje
A data frame with 14 rows and 4 variables:
id of the region
name of the region
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
Load average salary for specific spatial units for years 2011 to 2017.
Use package czso
and specifically function czso::czso_get_table(dataset_id = "110080")
to obtain the data and czso::czso_get_table_schema(dataset_id = "110080")
to get the columns
description.
load_average_salary() load_average_salary_col_explanations()
load_average_salary() load_average_salary_col_explanations()
data.frame containg the requested data
load_average_salary_col_explanations()
: Load description for columns
Extract specific layer, in form of spatial data, from cadastral map for given cadastral
territory in Czech Republic. Checks are performed to find out if the provided id
is valid
for some cadastral territory in Czech Republic.
load_cadastral_territory(id, layer = "katastralni uzemi", WGS84 = FALSE)
load_cadastral_territory(id, layer = "katastralni uzemi", WGS84 = FALSE)
id |
id of cadastral territory as character |
layer |
identification of data to extract as character, see details.
Default value is |
WGS84 |
convert data to WGS-84 coordinate system? Default |
The layer
can have values from following set, the value in brackets is alias to full layer
name:
"BODOVE_POLE_B"
"BODOVE_POLE_T"
"BUDOVY_B"
("budovy body"
)
"BUDOVY_DEF"
"BUDOVY_P"
("budovy"
)
"DALSI_PRVKY_MAPY_B"
"DALSI_PRVKY_MAPY_L"
"DALSI_PRVKY_MAPY_T"
"HRANICE_PARCEL_L"
("hranice parcel"
)
"KATASTRALNI_UZEMI_DEF"
"KATASTRALNI_UZEMI_L"
"KATASTRALNI_UZEMI_P"
("katastralni uzemi"
)
"PARCELY_KN_B"
"PARCELY_KN_DEF"
"PARCELY_KN_L"
"PARCELY_KN_P"
("parcely"
)
"PRVKY_ORIENT_MAPY_B"
"PRVKY_ORIENT_MAPY_L"
"PRVKY_ORIENT_MAPY_T"
"VB_P"
So the codes layer = "BUDOVY_B"
and layer = "budovy body"
are equal.
The values of id
follow general pattern of six number with first number being 6,7 or 9.
data.frame
with spatail objects (sf
) of the specified layer
More detailed information about data can be found at the provider's website http://atom.cuzk.cz/.
## Not run: parcely_vyskov <- load_cadastral_territory("788571", layer = "parcely") ## End(Not run)
## Not run: parcely_vyskov <- load_cadastral_territory("788571", layer = "parcely") ## End(Not run)
Load data from Data200 data source (https://geoportal.cuzk.cz/(S(ijginumejzilvacbfijkylwj))/Default.aspx?mode=TextMeta&side=mapy_data200&text=dSady_mapyData200&head_tab=sekce-02-gp&menu=229). The data can be used only after correctly citing the creator (as per terms of use https://geoportal.cuzk.cz/Dokumenty/Podminky_EN.pdf). The citation is in form "Mapový podklad – Data200, insert year © Český úřad zeměměřický a katastrální, www.cuzk.cz".
load_Data200(layer, WGS84 = FALSE) save_Data200(path, layer = NULL, type = NULL) load_Data200_info(english_names = FALSE)
load_Data200(layer, WGS84 = FALSE) save_Data200(path, layer = NULL, type = NULL) load_Data200_info(english_names = FALSE)
layer |
identification of data to extract as character, see details. |
WGS84 |
convert data to WGS-84 coordinate system? Default |
path |
|
type |
|
english_names |
change the names of the columns to English. Default |
The layer
can have values from following set, in the bracket is the name of general category
(can be used as type in saving the data):
"AdministrativniHraniceLinie"
("Hranice"
)
"AdministrativniUzemiCentroid"
("Hranice"
)
"AdministrativniUzemiUTJ"
("Hranice"
)
"AdministrativniUzemiObce"
("Hranice"
)
"AdministrativniUzemiOkresy"
("Hranice"
)
"AdministrativniUzemiKraje"
("Hranice"
)
"HrazJezNad50m"
("Vodstvo"
)
"HrazJezPod50m"
("Vodstvo"
)
"JezeroRybnikVodniNadrz"
("Vodstvo"
)
"VodniTokPod50m"
("Vodstvo"
)
"VodniTokNad50m"
("Vodstvo"
)
"Ostrovy"
("Vodstvo"
)
"MokrinaBazina"
("Vodstvo"
)
"Vodopad"
("Vodstvo"
)
"Prameny1"
("Vodstvo"
)
"Prameny2"
("Vodstvo"
)
"OrografickeNazvy"
("Popis"
)
"GeomorfologickeOblasti"
("Popis"
)
"GeomorfologickeCelky"
("Popis"
)
"GeomorfologickePodcelky"
("Popis"
)
"NarodniParkPrirodniRezervace"
("RuzneObjekty"
)
"Produktovod"
("RuzneObjekty"
)
"Vysilac"
("RuzneObjekty"
)
"VyznamneObjekty"
("RuzneObjekty"
)
"ProduktovodVyznamneBody"
("RuzneObjekty"
)
"Vez"
("RuzneObjekty"
)
"DulLom"
("RuzneObjekty"
)
"Budova"
("RuzneObjekty"
)
"ElektrickeVedeni"
("RuzneObjekty"
)
"Elektrarna"
("RuzneObjekty"
)
"ObceBody"
("Sidla"
)
"ObcePolygony"
("Sidla"
)
"Privoz"
("Doprava"
)
"PrivozStanice"
("Doprava"
)
"ZeleznicniPrejezd"
("Doprava"
)
"Heliport"
("Doprava"
)
"LanovaDraha"
("Doprava"
)
"DalnicniOdpocivka"
("Doprava"
)
"KrizovatkaMimourovnova"
("Doprava"
)
"LetisteNad40Ha"
("Doprava"
)
"LetisteNad40HaBod"
("Doprava"
)
"ZelezniceZastavky"
("Doprava"
)
"LetistePod40Ha"
("Doprava"
)
"LodniPristav"
("Doprava"
)
"PristavaciDraha"
("Doprava"
)
"Zeleznice"
("Doprava"
)
"Silnice"
("Doprava"
)
"LesyPlantaze"
("Vegetace"
)
"KotovaneBody"
("Relief"
)
"Vrstevnice"
("Relief"
)
"SkalniStenaSraz"
("Relief"
)
"Jeskyne"
("Relief"
)
"DMR"
("Relief"
)
"DMRShaded"
("Relief"
)
"load_Data200"
- data.frame
with spatial objects (sf
) of the specified layer.
For layer
either "DMR"
or "DMRShaded"
the output is actually a (raster
).
"save_Data200"
- path
to the unzipped files (for layer) or folder (for type),
the zipped file is also stored at path (mainly for further use)
load_Data200()
: Loads single dataset
save_Data200()
: Download and store layer (and zipped general category) or complete category
load_Data200_info()
: Load information about layers in Data200.
## Not run: waterfalls <- load_Data200(layer = "Vodopad") ## End(Not run) ## Not run: folder_water_objects <- save_Data200("~/data/water", type = "Vodopad") ## End(Not run)
## Not run: waterfalls <- load_Data200(layer = "Vodopad") ## End(Not run) ## Not run: folder_water_objects <- save_Data200("~/data/water", type = "Vodopad") ## End(Not run)
Load data from Data50 data source (https://geoportal.cuzk.cz/(S(xbw0cmgh1cve4bciko2oo4e2))/Default.aspx?lng=EN&mode=TextMeta&side=mapy_data50&text=dSady_mapyData50&head_tab=sekce-02-gp&menu=2290). The data can be used only after correctly citing the creator (as per terms of use https://geoportal.cuzk.cz/Dokumenty/Podminky_EN.pdf). The citation is in form "Mapový podklad – Data50, insert year © Český úřad zeměměřický a katastrální, www.cuzk.cz".
Some basic description of the dataset Data50 or Data200. Most importantly names of layers and sizes of files that need to be downloaded.
load_Data50(layer, WGS84 = FALSE) save_Data50(path, layer = NULL, type = NULL) load_Data50_info(english_names = FALSE)
load_Data50(layer, WGS84 = FALSE) save_Data50(path, layer = NULL, type = NULL) load_Data50_info(english_names = FALSE)
layer |
identification of data to extract as character, see details. |
WGS84 |
convert data to WGS-84 coordinate system? Default |
path |
|
type |
|
english_names |
change the names of the columns to English. Default |
The layer
can have values from following set, in the bracket is the name of general category
(can be used as type in saving the data):
"BlokBudov"
("sidelniKulturniHospodarskeObjekty"
)
"Budova"
("sidelniKulturniHospodarskeObjekty"
)
"Hrad"
("sidelniKulturniHospodarskeObjekty"
)
"Hrbitov"
("sidelniKulturniHospodarskeObjekty"
)
"ChatovaKolonie"
("sidelniKulturniHospodarskeObjekty"
)
"Kostel"
("sidelniKulturniHospodarskeObjekty"
)
"LyzarskyMustek"
("sidelniKulturniHospodarskeObjekty"
)
"RozhlednaVysilac"
("sidelniKulturniHospodarskeObjekty"
)
"Rozvalina"
("sidelniKulturniHospodarskeObjekty"
)
"Stadion"
("sidelniKulturniHospodarskeObjekty"
)
"UsazovaciNadrzOdkaliste"
("sidelniKulturniHospodarskeObjekty"
)
"VetrnyMotor"
("sidelniKulturniHospodarskeObjekty"
)
"VezovitaStavba"
("sidelniKulturniHospodarskeObjekty"
)
"VodojemVezovy"
("sidelniKulturniHospodarskeObjekty"
)
"Zamek"
("sidelniKulturniHospodarskeObjekty"
)
"Zricenina"
("sidelniKulturniHospodarskeObjekty"
)
"Cesta"
("komunikace"
)
"LanovaDraha"
("komunikace"
)
"Lavka"
("komunikace"
)
"Letiste"
("komunikace"
)
"LetisteObvodovaLinie"
("komunikace"
)
"Most"
("komunikace"
)
"Pesina"
("komunikace"
)
"Pristav"
("komunikace"
)
"Privoz"
("komunikace"
)
"SilniceDalnice"
("komunikace"
)
"SilniceVeVystavbe"
("komunikace"
)
"Tunel"
("komunikace"
)
"Ulice"
("komunikace"
)
"ZeleznicniStanice"
("komunikace"
)
"ZeleznicniTrat"
("komunikace"
)
"ZeleznicniVlecka"
("komunikace"
)
"ElektrickeVedeni"
("produktovodyElektrickeVedeni"
)
"Produktovod"
("produktovodyElektrickeVedeni"
)
"Akvadukt"
("vodstvo"
)
"Hraz"
("vodstvo"
)
"Jez"
("vodstvo"
)
"Shybka"
("vodstvo"
)
"VodniPlocha"
("vodstvo"
)
"VodniTok"
("vodstvo"
)
"HraniceSpravniJednotkyaKU"
("hraniceUzemnichJednotek"
)
"ChraneneUzemi"
("hraniceUzemnichJednotek"
)
"Les"
("vegetacePovrch"
)
"LoukaPastvina"
("vegetacePovrch"
)
"RaselinisteMocalBazina"
("vegetacePovrch"
)
"ZahradaSadParkViniceChmelnice"
("vegetacePovrch"
)
"Jeskyne"
("terenniRelief"
)
"KotovanyBod"
("terenniRelief"
)
"SkalnatySraz"
("terenniRelief"
)
"Skaly"
("terenniRelief"
)
"TerenniStupen"
("terenniRelief"
)
"TerenniStupenSpadnice"
("terenniRelief"
)
"Vrstevnice"
("terenniRelief"
)
"DefinicniBodCastiObce"
("popis"
)
"DefinicniBodSpravnihoCelku"
("popis"
)
"Jmeno_B"
("popis"
)
"Jmeno_L"
("popis"
)
"Jmeno_P"
("popis"
)
"ObjektRuzny"
("popis"
)
"load_Data50"
- data.frame
with spatial objects (sf
) of the specified layer.
"save_Data50"
- path
to the unzipped files (for layer) or folder (for type),
the zipped file is also stored at path (mainly for further use)
data.frame
with description of layers.
load_Data50()
: Loads single dataset
save_Data50()
: Download and store layer (and zipped general category) or complete category
load_Data50_info()
: Load information about layers in Data50.
## Not run: rivers <- load_Data50(layer = "VodniTok") ## End(Not run) ## Not run: folder_communications <- save_Data50("~/data/coomunications", type = "komunikace") ## End(Not run) ## Not run: info <- load_Data50_info(english_names = TRUE) info <- load_Data200_info(english_names = TRUE) ## End(Not run)
## Not run: rivers <- load_Data50(layer = "VodniTok") ## End(Not run) ## Not run: folder_communications <- save_Data50("~/data/coomunications", type = "komunikace") ## End(Not run) ## Not run: info <- load_Data50_info(english_names = TRUE) info <- load_Data200_info(english_names = TRUE) ## End(Not run)
Load financial indicators for specific spatial units (NUTS2 and NUTS3) for years 1995 to 2018.
Use package czso
and specifically function czso::czso_get_table(dataset_id = "050101")
to obtain the data and czso::czso_get_table_schema(dataset_id = "050101")
to get the columns
description.
load_financial_indicators() load_financial_indicators_col_explanations()
load_financial_indicators() load_financial_indicators_col_explanations()
data.frame containg the requested data
load_financial_indicators_col_explanations()
: Load description for columns
Load population by sex and five-year age categories for years 2010 to 2018.
Use package czso
and specifically function czso::czso_get_table(dataset_id = "130142")
to obtain the data and czso::czso_get_table_schema(dataset_id = "130142")
to get the columns
description.
load_population_age(year = NA, area_type = NA) load_population_age_col_explanations()
load_population_age(year = NA, area_type = NA) load_population_age_col_explanations()
year |
for which the data should be obtained. Default value is |
area_type |
type of are for which the data should be obtained. Default value is |
The area_type
can have values from following set:
"okresy"
"kraje"
"republika"
data.frame containg the requested data
load_population_age()
: Load the data
load_population_age_col_explanations()
: Load description for columns
More detailed information about data can be found at the provider's website https://www.czso.cz/csu/czso/obyvatelstvo-k-3112-podle-pohlavi-v-obcich.
Load population by sex for settlements for each years from 2000 to 2018.
Use package czso
and specifically function czso::czso_get_table(dataset_id = "130149")
to obtain the data and czso::czso_get_table_schema(dataset_id = "130149")
to get the columns
description.
load_population_settlements(year = NA) load_population_settlements_col_explanations()
load_population_settlements(year = NA) load_population_settlements_col_explanations()
year |
year for which the data should be obtained. Default value is |
data.frame containg the requested data
load_population_settlements()
: Load the data
load_population_settlements_col_explanations()
: Load description for columns
More detailed information about data can be found at the provider's website https://www.czso.cz/csu/czso/obyvatelstvo-podle-petiletych-vekovych-skupin-a-pohlavi-v-krajich-a-okresech.
Extract specific layer, in form of spatial data, from RUIAN for given settlement in
Czech Republic. Checks are performed to find out if the provided id
is valid for some
settlement in Czech Republic.
load_RUIAN_settlement(id, layer = "obec", WGS84 = FALSE)
load_RUIAN_settlement(id, layer = "obec", WGS84 = FALSE)
id |
id of settlement as character |
layer |
identification of data to extract as character, see details.
Default value is |
WGS84 |
convert data to WGS-84 coordinate system? Default |
In case of adress places (using ADRM_B or adresni mista as layer) are checked, the csv file with more attributes is also downloaded and linked to the spatial data layer.
The layer
can have values from following set, the value in brackets is alias to full layer
name:
"ADRM_B"
("adresni mista"
)
"CO_B"
("casti obce"
)
"KATUZE_P"
("katastralni uzemi"
)
"OBEC_P"
("obec"
)
"SO_B"
("stavebni objekty"
)
"UL_L"
("ulice"
)
"VO_P"
("volebni okrsky"
)
"ZSJ_P"
("zakladni sidelni jednotky"
)
"MOMC_P"
"MOP_P"
"SOP_P"
So the codes layer = "CO_B"
and layer = "casti obce"
are equal.
The values of id
follow general pattern of six number with first number being 5.
data.frame
with spatial objects (sf
) of the specified layer
More detailed information about data can be found at the provider's website http://atom.cuzk.cz/.
## Not run: adresy_vyskov <- load_RUIAN_settlement("592889", layer = "adresni mista") ## End(Not run)
## Not run: adresy_vyskov <- load_RUIAN_settlement("592889", layer = "adresni mista") ## End(Not run)
Extract specific layer, in form of spatial data, from RUIAN for whole Czech Republic. The minor issue with these data is the size, the datasets that needs to be downloaded is roughly 190 MB.
load_RUIAN_state(layer = "stat", WGS84 = FALSE)
load_RUIAN_state(layer = "stat", WGS84 = FALSE)
layer |
identification of data to extract as character, see details.
Default value is |
WGS84 |
convert data to WGS-84 coordinate system? Default |
The layer
can have values from following set, the value in brackets is alias to full layer
name:
"KATUZE_P"
("katastralni uzemi"
)
"OBCE_P"
("obce"
)
"OKRESY_P"
("okresy"
)
"ORP_P"
("orp"
)
"POU_P"
("pou"
)
"PRARES_P"
"REGION_P"
("regiony"
)
"STATY_P"
("stat"
)
"STU_P"
("stavebni úrady"
)
"VO_P"
("volebni okrsky"
)
"VUSC_P"
("kraje"
)
So the codes layer = "OKRESY_P"
and layer = "okresy"
are equal.
data.frame
with spatail objects (sf
) of the specified layer
More detailed information about data can be found at the provider's website http://atom.cuzk.cz/.
## Not run: obce_CR <- load_RUIAN_state(layer = "obce") ## End(Not run)
## Not run: obce_CR <- load_RUIAN_state(layer = "obce") ## End(Not run)
Data from Czech census in year 2011 by four main topics. The data are provided at various aggregation levels that can be filtered.
Use package czso
and specifically function czso::czso_get_table(dataset_id)
to obtain the data and czso::czso_get_table_schema(dataset_id)
to get the columns
description. The values for specific datasets of census are
"SLDB-VYBER", "sldbdomy", "sldbdomac", "sldbvyjizdka"
.
load_SLDB_2011(type = "obyvatelstvo", load_names = TRUE) load_SLDB_2011_col_explanations(type = "obyvatelstvo")
load_SLDB_2011(type = "obyvatelstvo", load_names = TRUE) load_SLDB_2011_col_explanations(type = "obyvatelstvo")
type |
type of requested information as character. Default value is "obyvatelstvo". See details for more. |
load_names |
boolean value if the column names should be loaded from external source. Default TRUE as the column names do no make any sense otherwise. |
Types of data that can be downloaded, and used as type
parameter in the function call:
"obyvatelstvo"
"domy-byty"
"domacnosti"
"vyjizdka"
data.frame containg the requested data
load_SLDB_2011()
: Load the data
load_SLDB_2011_col_explanations()
: Get names of columns for SLDB of specific type as data.frame
More detailed information about data can be found at the provider's website https://www.czso.cz/csu/sldb.
## Not run: sldb <- load_SLDB_2011(type = "obyvatelstvo") ## End(Not run)
## Not run: sldb <- load_SLDB_2011(type = "obyvatelstvo") ## End(Not run)
A dataset containing the names and other attributes of all 6,258 settlements (villages and cities) in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
obce
obce
A data frame with 6258 rows and 7 variables:
id of the settlement
name of the settlement
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
A dataset containing the names and other attributes of all 77 districts in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
okresy
okresy
A data frame with 77 rows and 5 variables:
id of the district
name of the district
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
A dataset containing the names and other attributes of all 206 settlements of type III (orp) in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
orp
orp
A data frame with 206 rows and 4 variables:
id of the settlements of type III (orp)
name of the settlements of type III (orp)
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
A dataset containing the names and other attributes of all 393 settlements of type II (pou) in Czech Republic. The codes (every column with string kod in name) are treated as character strings even though that some of them are numbers. These codes, however, serve only as IDs. Colums with suffix _kod are various levels of self-government units in Czech Republic.
pou
pou
A data frame with 393 rows and 5 variables:
id of the settlements of type II (pou)
name of the settlements of type II (pou)
http://services.cuzk.cz/shp/stat/epsg-5514/1.zip
Set and get how long the cache is valid and the files are downloaded only once and then returned from the cache.
set_cache_length(length) get_cache_length()
set_cache_length(length) get_cache_length()
length |
|
get_cache_length()
numeric
length of cache validity (default value is 7 days)
set_cache_length()
: Set cache length
get_cache_length()
: Get cache length