Skip to content

acteng/route-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a quick exploration of how to calculate some characteristics about a route.

Generating the RUC file

Generate the RUC layer using atip-data-prep, then grab the temporary GeoJSON file.

Convert: ogr2ogr ruc.fgb rural_urban_classification.geojson

Generating the census file

Same, but for tmp_census_output_areas

Getting OS data

Download the GB-wide gpkg from https://osdatahub.os.uk/downloads/open/OpenRoads. Create a FGB with links and nodes:

ogr2ogr os_links.fgb oproad_gb.gpkg -t_srs EPSG:4326 -sql 'SELECT id, road_classification, start_node, end_node, geometry FROM road_link'
ogr2ogr os_nodes.fgb oproad_gb.gpkg -t_srs EPSG:4326 -sql 'SELECT id, geometry FROM road_node'