Skip to content

Commit

Permalink
update sources of BDOO and BDOT10K
Browse files Browse the repository at this point in the history
  • Loading branch information
kadyb authored Jan 6, 2025
1 parent 567f690 commit b17c561
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ layers (EGiB). Thanks to Grzegorz Sapijaszko.

* The list of communes has been updated (as of 06 January 2025).

* Updated BDOO (`geodb_download()`) and BDOT10K (`topodb_download()`)
database sources.

# rgugik 0.4.1

* The list of communes has been updated (as of 02 January 2024).
Expand Down
2 changes: 1 addition & 1 deletion R/geodb_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ geodb_download = function(voivodeships, outdir = ".", unzip = TRUE, ...) {
}

# generate URLs using voivodeship TERC
URLs = paste0("http://opendata.geoportal.gov.pl/bdoo/PL.PZGiK.201.",
URLs = paste0("http://opendata.geoportal.gov.pl/bdoo/2024/PL.PZGiK.201.",
df_names$TERC, ".zip")

df_names = cbind(df_names, URL = URLs, stringsAsFactors = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion R/topodb_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ topodb_download = function(county = NULL, TERYT = NULL, outdir = ".",
stop("incorrect TERYT")
}

base_URL = "https://opendata.geoportal.gov.pl/bdot10k/"
base_URL = "https://opendata.geoportal.gov.pl/bdot10k/schemat2021/"

if (!is.null(county)) {
sel_vector = df_names[, "NAME"] %in% county
Expand Down

0 comments on commit b17c561

Please sign in to comment.