continuity: Calculate the continuity of street buildings

Description Usage Arguments Details Examples

View source: R/road_continuity.R

Description

It generates a buffer area with distance di on each side of street. It then projects buildings within this area onto street lines. Continuity of buildings equals the ratio of projection length of buildings to the length of streets. In option regular, the projection length of buildings is defined as the length of all building projection on each side of streets. In option near, the projection length of buildings is defined as the length of projection of one side of building which has the shortest distance to streets.

Usage

1
building_continuity(building, street, di, option = ("regular", "near"))

Arguments

di

Defines the distance from streets. Buildings within which area will be considered as buildings alongside street (default = 40 meters).

option

option defines the method by which continuity of street buildings is calculated. If option = "regular", the projection length of buildings is defined as the length of all building projection on each side of streets. If option = "near", the projection length of buildings is defined as the length of projection of the nearest building edge to the street segment.

building

A Simple Feature containing the building footprints of a city

street

A Simple Feature containing the street network of a city.

w

defines the total distance of the translation of the street segment (line) in option1/2 (default = 40 meters). Defines the length of perpendicular line in option3 (default = 100 meters).

Details

It returns the continuity (0 to 1) of the buildings alongside every street to the simple feature "street". If the translation lines of streets and the polygons ("city") does not have intersection, it will return NA.

Examples

1
2
3
4
5
6
7
8
9
## Not run:
## Not run:
building <-data(building)
street<-data(street)
continuity(building, street, di = 40, option = "regular")
building <-data(building)
street<-data(street)
continuity(building, street, di = 40, option = "near")
## End(Not run)

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