Compute Intersection Density and Street Network Morphology
Source:R/morphology.R
walk_intersection_density.RdEvaluates the structural morphology of a walkable street network by analyzing node valence (degrees), isolating cul-de-sacs (dead ends), counting 3-way (T-junctions) and 4-way+ (crossroads) intersections, and calculating density metrics.
Arguments
- network
A
walk_networkobject produced bywalk_build_network().- study_area
Optional
sfpolygon defining the bounding study area. IfNULL, the convex hull of the street network is used to compute area in km^2.
Value
A walk_morphology S3 object containing:
- summary
A named list of summary morphological metrics.
- nodes
sfpoints table augmented with nodedegreeandjunction_type.- network
The input
walk_network.
Examples
data(streets_cusco)
net <- walk_build_network(streets_cusco, verbose = FALSE)
morph <- walk_intersection_density(net)
print(morph)
#>
#> ── Walkability Network Morphology & Intersection Density ───────────────────────
#> ✔ Total Intersections (≥ 3-way): 108
#> ✔ Cul-de-sacs (Dead ends, 1-way): 71
#> ✔ 3-way Junctions (T-junctions): 67
#> ✔ 4-way+ Crossings (Grid nodes): 41
#> • Intersection Density: 46.2 / km² (Convex hull of network nodes)
#> • Cul-de-sac Ratio: 65.7 % of intersections
#> • Grid Orthogonality Ratio (4-way+ / Intersections): 38.0 %
#> • Mean Node Degree: 1.02