-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* buggy documentation of katastry() * cran comments for v1.12.2 * purge mapview from examples * cleaner history / s2 artefacts removed * upgrade http >> https in readme * housekeeping - citation, readme, description, vignette updated to current best practices * readxl purged from vignettw
- Loading branch information
Showing
17 changed files
with
185 additions
and
189 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: RCzechia | ||
Type: Package | ||
Title: Spatial Objects of the Czech Republic | ||
Version: 1.12.2 | ||
Date: 2024-07-07 | ||
Version: 1.12.3 | ||
Date: 2024-11-25 | ||
Authors@R: c( | ||
person("Jindra", "Lacko", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0002-0375-5156")), | ||
|
@@ -26,18 +26,12 @@ Imports: | |
magrittr | ||
Suggests: | ||
terra, | ||
readxl, | ||
units, | ||
ggplot2, | ||
tidyterra, | ||
stringr, | ||
rvest, | ||
xml2, | ||
scales, | ||
knitr, | ||
testthat, | ||
roxygen2, | ||
devtools, | ||
rmarkdown, | ||
dplyr, | ||
lwgeom, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
library(sf) | ||
library(arcpullr) | ||
|
||
remote_target <- "https://services1.arcgis.com/LPm07959azIAvFRD/ArcGIS/rest/services/urrlab_historicky_gis_cesko/FeatureServer/" | ||
|
||
objekty <- list( "3" = "okresy_1921", | ||
"4" = "okresy_1930", | ||
"2" = "okresy_1947", | ||
"6" = "okresy_1950", | ||
"7" = "okresy_1961", | ||
"8" = "okresy_1970", | ||
"9" = "okresy_1980", | ||
"10" = "okresy_1991", | ||
"11" = "okresy_2001", | ||
"12" = "okresy_2011", | ||
"13" = "kraje_1950", | ||
"14" = "kraje_1961", | ||
"15" = "kraje_1970", | ||
"16" = "kraje_1980", | ||
"17" = "kraje_1991", | ||
"18" = "kraje_2001", | ||
"19" = "kraje_2011") | ||
|
||
|
||
for (i in seq_along(objekty)) { | ||
|
||
wrk_objekt <- arcpullr::get_spatial_layer(paste0(remote_target, names(objekty)[i])) | ||
|
||
info <- arcpullr::get_layer_info(paste0(remote_target, names(objekty)[i])) | ||
|
||
clean_objekt <- wrk_objekt %>% | ||
st_make_valid() %>% | ||
st_transform(4326) | ||
|
||
colnames(clean_objekt) <- c(info$fields$alias, "geometry") | ||
|
||
st_geometry(clean_objekt) <- "geometry" | ||
|
||
duplicity <- which(duplicated(colnames(clean_objekt))) # indexy duplictních názvů sloupců | ||
|
||
clean_objekt <- clean_objekt[, -duplicity] # duplicitní sloupce ven! | ||
|
||
if((st_crs(clean_objekt)$input == "EPSG:4326") & all(st_is_valid(clean_objekt))) { | ||
saveRDS(clean_objekt, paste0("./data-backup/history_", objekty[i], "v2.rds")) | ||
} else { | ||
warning(paste(objekty[i], "je nevalidní, ještě jednou a pořádně!!")) | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters