Skip to content

Commit

Permalink
complete transportation
Browse files Browse the repository at this point in the history
* transportation_with_cycleway can be disabled
* transportation and transportation_name
    tablefrom line, point and polygon
  -> clustering somewhat broke
  -> because of that, use some CTEs and for-loops in template
  • Loading branch information
feludwig committed Nov 12, 2023
1 parent 88cf059 commit 017036e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def make_global_dict(c:psycopg2.extensions.cursor,
'admin_centre_4':'admin_centre:4',
'iso3166_1_alpha2':'ISO3166-1:alpha2',
'iso3166_1':'ISO3166-1',
'mtb_scale':'mtb:scale',
},
'line':{
'housenumber':'addr:housenumber',
Expand All @@ -180,6 +181,7 @@ def make_global_dict(c:psycopg2.extensions.cursor,
'admin_centre_4':'admin_centre:4',
'iso3166_1_alpha2':'ISO3166-1:alpha2',
'iso3166_1':'ISO3166-1',
'mtb_scale':'mtb:scale',
},
}

Expand All @@ -194,7 +196,9 @@ def make_global_dict(c:psycopg2.extensions.cursor,
'ele', 'natural', 'ref', 'man_made', 'tower_type',
'start_date', 'admin_centre_4', 'population',
'iso3166_1_alpha2','iso3166_1','country_code_fips',
'capital', 'information',
'capital', 'information','network','surface','foot',
'horse','bicycle','toll','oneway','ramp','bridge',
'tunnel','ford','service','expressway','mtb_scale',

'way', 'tags', 'osm_id',
),
Expand Down Expand Up @@ -226,6 +230,9 @@ def make_global_dict(c:psycopg2.extensions.cursor,
'wikipedia', 'admin_centre_4', 'population',
'iso3166_1_alpha2','iso3166_1','country_code_fips',
'capital', 'information','protection_title',
'construction','public_transport','network',
'oneway','ramp','service','toll','expressway',
'bicycle','foot','horse','mtb_scale','surface',

'way_area', 'way', 'tags', 'osm_id',
),
Expand Down Expand Up @@ -512,6 +519,8 @@ def print_table(data,headers) :
'omt_all_func':'public.omt_all',
# name for the lake_centerlines loaded geojson data table (11MB size)
'lake_table_name':'lake_centerline',
# whether to add the "cycleway" column to layer "transportation". experimental and not in omt spec
'transportation_with_cycleway':False,
}
if TEMPLATE_VARS['make_name_columns_function'] :
# with comma the end
Expand Down

0 comments on commit 017036e

Please sign in to comment.