building_area: Calculate building area

Description Usage Arguments Details Examples

View source: R/building_area.R

Description

Calculates the area of buildings on two sides of streets. It performs geometric translation to the lines ("street") by distance k, and defines polygons ("building") that intersect with the lines as building alongside streets.

Usage

1
street_width (building, street, k =w =  , option = c("max","near","point"))

Arguments

option

Defines the method by which building area is calculated. If option = "fixed", k should be defined by the user (default = 40 meters). If option = "street", k equals to the width of street on each side.

k

Defines the distance from streets. Buildings within which area will be considered as buildings alongside streets.

building

A Simple Feature containing the building footprints of a city

street

A Simple Feature containing the street network of a city.

Details

Calculate building area with two options available. It returns the summary statistics (max, min, average, weighted average, standard deviation) of building area alongside every street to the Simple Feature "street". If the calculation is performed in option "street", the width of street should first be calculated If the translation lines of streets and the polygons ("building") does not have intersection, it will return NA.

Examples

1
2
3
4
5
6
7
8
## Not run:
building <-data(building)
street<-data(street)
building_area (building, street, option = "fixed", k = 40)
building <-data(building)
street<-data(street)
building_area (building, street, option = "street", k = 40)
## End(Not run)

lunliu454/streetchar documentation built on Dec. 21, 2021, 12:43 p.m.