Overture Maps Import
1. Overview
The Overture Maps Foundation (OMF) publishes globally standardized, cloud-native geospatial datasets hosted as GeoParquet files on Amazon S3. Its Transportation theme represents road networks using an explicit connector-and-segment linear-referencing model:
- Connectors: Point locations representing intersections or physical junctions where travel paths can branch or merge.
- Segments: Continuous roadway, path, or track geometries (
LineString) carrying linear-referenced attributes—including road class (motorway,primary,residential,footway,cycleway, etc.), directional access restrictions, and speed limits (mphorkph) that can vary along fractions of a segment’s length. - Infrastructure: Point and polygon features representing traffic signals, stop signs, yield (
give_way) signs, and pedestrian crossings.
BAMBAM’s Overture Maps importer (bambam-omf, invoked by stage 1 of script/bambam_build_open_data.sh) queries Overture’s cloud GeoParquet releases directly over S3 for any study extent—eliminating the need to manually download and slice multi-gigabyte regional files. It then splits segments at interior connectors, attaches intersection infrastructure, filters links into modal networks (walk, bike, drive), removes disconnected network islands, and writes a ready-to-run RouteE Compass dataset.
2. Setup
1. Import via the Build Script (bambam_build_open_data.sh)
To download and build an Overture Maps road network using the pipeline script, run the network stage with your buffered WKT extent file:
./script/bambam_build_open_data.sh \
--extent-file query/denver_470_buffer.txt \
--output-dir denver_buf \
--to-stage network
If you have already run the import once and want to rebuild the network from the cached raw/ Parquet files without re-downloading from S3, pass --local-omf-dir:
./script/bambam_build_open_data.sh \
--extent-file query/denver_470_buffer.txt \
--output-dir denver_buf \
--local-omf-dir denver_buf/raw \
--to-stage network \
--force
Alternative: Direct CLI Invocation (bambam-omf or bambam_util import-network)
You can also invoke bambam-omf network (or bambam_util import-network --source omf) directly:
./rust/target/release/bambam-omf network \
--configuration-file configuration/bambam-network/bambam-network-config.json \
--extent-file query/denver_470_buffer.txt \
--output-directory denver_buf
Network Filter Configuration (bambam-network-config.json)
The file configuration/bambam-network/bambam-network-config.json controls which Overture road classes and access modes are included in each modal edge list and sets the minimum connected-component size for island removal:
{
"edge_lists": [
{
"mode": "walk",
"filter": [
{ "type": "subtype", "subtype": "road" },
{
"type": "class",
"classes": ["secondary", "tertiary", "residential", "living_street", "unclassified", "service", "pedestrian", "footway", "steps", "path", "track", "bridleway", "unknown"],
"allow_unset": true,
"behavior": "include"
},
{ "type": "access_mode", "modes": ["foot"] }
]
},
{
"mode": "bike",
"filter": [
{ "type": "subtype", "subtype": "road" },
{
"type": "class",
"classes": ["primary", "secondary", "tertiary", "residential", "living_street", "unclassified", "service", "pedestrian", "path", "track", "cycleway", "bridleway", "unknown"],
"allow_unset": true,
"behavior": "include"
},
{ "type": "access_mode", "modes": ["bicycle"] }
]
},
{
"mode": "drive",
"filter": [
{ "type": "subtype", "subtype": "road" },
{
"type": "class",
"classes": ["motorway", "trunk", "primary", "secondary", "tertiary", "residential", "living_street", "unclassified"],
"allow_unset": false,
"behavior": "include"
},
{ "type": "access_mode", "modes": ["motor_vehicle", "car", "truck", "motorcycle"] }
]
}
],
"island_algorithm_configuration": {
"min_distance": 2,
"distance_unit": "miles"
}
}
2. Run BAMBAM
cd denver_buf
../rust/target/release/bambam \
--config-file bambam.toml \
--query-file ../query/denver_extent.json
3. What Happens
- Two-Stage Cloud Spatial Filtering:
bambam-omfcomputes the bounding box of--extent-fileand streams matching row groups from the latest Overture Maps release on Amazon S3 (segments,connectors, andinfrastructure) using concurrent async readers.- Records inside the bounding box are then filtered against the exact WKT polygon geometry.
- Raw GeoParquet Caching (
raw/):- The filtered Overture records are saved locally under
denver_buf/raw/(segments.parquet,connectors.parquet, andinfrastructure.parquet), guaranteeing reproducibility and enabling offline re-imports.
- The filtered Overture records are saved locally under
- Linear-Referenced Segment Splitting & Island Removal:
- Segments that contain interior connectors are split at each connector’s linear-referenced position \(\text{lr} \in [0, 1]\), producing directed graph edges with exact sub-linestring geometries, bearings, and speed limits.
- Weakly connected components whose total roadway length is less than
min_distance(2 miles by default) are removed so grid origins never snap to isolated parking lots or disconnected paths.
- Infrastructure Attachment & Dataset Serialization:
- Traffic signals, stop signs, yield signs, and crossings are spatially matched within 15 meters to connector vertices (
vertices-complete.csv.gzandvertices-*-enumerated.txt.gz). - Source-to-Compass ID mappings (
vertices-mapping.csv.gzand<mode>/edges-mapping.csv.gz), mode subdirectories (walk/,bike/,drive/), network statistics (summary.toml), and a defaultbambam.tomlare written todenver_buf/.
- Traffic signals, stop signs, yield signs, and crossings are spatially matched within 15 meters to connector vertices (