catastrozip2st: catastrozip2st

Description Usage Arguments Value Examples

View source: R/catastrozip2st.R

Description

# catastrozip2st downloads a zip link into a temporal folder and extracts: - building.gml - buildingpart.gml - otherconstruction.gml It returns a list of 3 elements, each in st format Note1: it includes the calculation of Hmax heigth for buildingparts

Usage

1
catastrozip2st(ziplink, tempdir = "./temp/", name, Hfloor = 3)

Arguments

ziplink

–> this is the zip url for a single municipality (captured in catastroprovince)

tempdir

–> this where temporary files are stores (zips, unzips...)

name

–> this is the name of the muninipality (captured in catastroprovince)

Hfloor

–> asign a height of each floor above the ground (stimation of building height)

Value

list of 3 elemenst (building, buildingpart, otherconstruction) in simple feature collection. This parts will be merged and unified in a gpkg with the catastroprovince() function.

Examples

1
2
3
4
5
6
## Not run: 
ziplink <- 'http://www.catastro.minhap.es/INSPIRE/Buildings/56/56101-MELILLA/A.ES.SDGC.BU.56101.zip'
name = 'MELILLA'
catastrozip2st(ziplink,tempdir,name)

## End(Not run)

cesarkero/CatastroDownloader documentation built on Feb. 4, 2021, 7:22 a.m.