Learn R Programming

rgugik (version 0.4.1)

models3D_download: Download 3D models of buildings for counties

Description

Download 3D models of buildings for counties

Usage

models3D_download(
  county = NULL,
  TERYT = NULL,
  LOD = "LOD1",
  outdir = ".",
  unzip = TRUE,
  ...
)

Value

models of buildings in Geography Markup Language format (.GML)

Arguments

county

county name in Polish. Check county_names() function.

TERYT

county ID (4 characters)

LOD

level of detail for building models ("LOD1" or "LOD2"). "LOD1" is default. "LOD2" is only available for ten voivodeships (TERC: "04", "06", "12", "14", "16", "18", "20", "24", "26", "28"). Check voivodeship_names() function.

outdir

(optional) name of the output directory; by default, files are saved in the working directory

unzip

TRUE (default) or FALSE, when TRUE the downloaded archive will be extracted and removed

...

additional argument for utils::download.file()

Examples

Run this code
if (FALSE) {
models3D_download(TERYT = c("2476", "2264")) # 3.6 MB
models3D_download(county = "sejneński", LOD = "LOD2") # 7.0 MB
}

Run the code above in your browser using DataLab