diff --git a/NEWS.md b/NEWS.md index 1792411..a6c8835 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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). diff --git a/R/geodb_download.R b/R/geodb_download.R index e76e4a5..c0e2bb1 100644 --- a/R/geodb_download.R +++ b/R/geodb_download.R @@ -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) diff --git a/R/topodb_download.R b/R/topodb_download.R index e735cf4..1cf5ee3 100644 --- a/R/topodb_download.R +++ b/R/topodb_download.R @@ -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