-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
63 lines (38 loc) · 1.57 KB
/
config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'''
file containing constants in order to ease the process to reproduce the analysis
'''
CITY_SHORTNAME = 'curitba' #without spaces or uppercase characters
CITY_DESCRIPTION = 'Curitiba, Brazil'
# Key, description for Nominatim
NEIGHBORHOODS = {'agua_verde':'Água Verde, Curitiba','jardim_das_americas':'Jardim das Américas, Curitiba'}
# cutoff threshold for non-blocks
block_ratio_cutoff = 5
# curve radius for sidewalk "reconstruction"
curve_radius = 3
# extra tests available on some scripts
EXTRA_TESTS = True
# minimum polygonized area in m2
min_sidewalk_block_area = 100
# less variable constants:
highway_values = ['motorway','trunk','primary','secondary','tertiary','unclassified','residential','living_street']
sidewalks_dict = {'footway':['sidewalk','crossing']}
kerbs_dict = {'barrier':['kerb'],'kerb':True}
EXTENSION = '.geojson'
streets_suffix = '_streets'+EXTENSION
blocks_suffix = '_protoblocks'+EXTENSION
sidewalks_suffix = '_sidewalks'+EXTENSION
pol_sidewalks_suffix = '_sidewalk_polygons'+EXTENSION
kerbs_suffix = '_kerbs'+EXTENSION
splitted_suffix = '_splitted'+EXTENSION
intersections_suffix = '_intersections'+EXTENSION
neighborhoods_descriptive_statistics_path = 'neighborhoods_descriptive.json'
blocks_with_analysis_suffix = '_blocks_analysis'+EXTENSION
normalized_ratio_fieldname = 'norm_p_a_ratio'
isoperimetric_ratio_fieldname = 'isoperimetric_ratio'
az_std_fieldname = 'azimuth_std'
###################################
import os
if not os.path.exists('tests'):
os.makedirs('tests')
if not os.path.exists('tests.py'):
os.makedirs('tests.py')