Skip to content

Commit

Permalink
buggy documentation of katastry() (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacko authored Jul 8, 2024
1 parent 3c528e4 commit a8a022e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
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

0 comments on commit a8a022e

Please sign in to comment.