-
Notifications
You must be signed in to change notification settings - Fork 0
/
road_stats.py
39 lines (35 loc) · 1.16 KB
/
road_stats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
roadsAreal = ""
OSM = ""
carriageways = ""
# Area of convex hull
# Number of polygons
# Number of LoD1 edges
# Directionality of LoD1 edges (with graph)
# Polygon to LoD1 edge ratio
# Polygon area mean + std + median
# LoD1 edge length mean + std + median
# LoD1 edge total length
# LoD1 edge density (total edge length/area)
# Area to LoD1 length ratio
# Percentage overlap between linear and areal
# Road width mean + std + median
# Number of dual carriageways + proportion of all roads
# Number of LoD2 edges + percentage increase from OSM
# LoD2 edges length mean + std + median
# LoD2 edge total length
# LoD2 edge density (total edge length/area)
# Change in length between LoD1 and LoD2
# Number of intersections
# Intersection Density
# Number of edges per node average + std + median + mode
# Number of 4 dual carriageways
# Number of 3 duals + 1 single
# Number of 3 duals
# Number of 1 dual + 2 singles
# Number of 2 duals + 1 single
# Number of dead ends LoD1 + proportion of all nodes
# Number of dead ends LoD2 + percentage increase + proportion of all nodes
# LoD1 connected components
# Percentage of edges in largest CC
# LoD2 CC
# Percent of edges in largest CC