Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buggy documentation of katastry() #98

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions R/katastry.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#' @return `sf` data frame with 142 rows of 4 variables + geometry
#'
#' \describe{
#' \item{KOD}{Code of the city part / kod mestske casti}
#' \item{NAZEV}{Name of the city part / nazev mestske casti}
#' \item{KOD_OBEC}{Code of the city}
#' \item{NAZ_OBEC}{Name of the city}
#' \item{KOD}{Code of the cadastral area / kód katastrálního území}
#' \item{NAZEV}{Name of the cadastral area / název katastrálního území}
#' \item{KOD_OBEC}{Code of the municipality}
#' \item{NAZ_OBEC}{Name of the municipality}
#' \item{digi}{boolean indicating completed digitalization}
#' }
#'
#' @source © ČÚZK, 2024 <https://vdp.cuzk.cz/>
Expand Down
9 changes: 5 additions & 4 deletions man/katastry.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tests/testthat/test-3-integrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ test_that("integrace", {
expect_equal(sum(st_area(filter(katastry(), NAZ_OBEC == "Praha"))),
st_area(subset(obce_polygony(), NAZ_OBEC == "Praha")), tolerance = 1/1000)

# židovské město je v Praze
expect_true(st_contains(subset(obce_polygony(), NAZ_OBEC == "Praha"),
subset(katastry(), NAZEV == "Josefov"),
sparse = F)[[1]])


# Kramářova vila je v Praze / obci, orp, okresu i kraji

Expand Down
Loading