Configuration
A build can read its settings from a YAML file. duckosm init-config writes a template with comments:
duckosm init-config my_area.yaml
duckosm build --config my_area.yaml
| Rule |
|
| A key that you leave out |
takes the default of the tables below |
| An unknown key |
stops the build with an error. A known key that has no effect (for example options.engine) gives a warning |
| A relative path |
is read from the folder where you run duckosm |
An option of duckosm build |
wins over the file, for example duckosm build --config my_area.yaml -m walking |
| A value outside its choices |
stops the build before it starts |
Area and output
| Key |
Default |
Option |
Does |
name |
default |
|
the name of the area: the output file is <name>.duckdb |
output_path |
output.duckdb |
-o |
a .duckdb file, or a folder for <name>.duckdb |
modes |
[driving] |
-m |
driving, walking, cycling |
osm_overrides |
none |
--fixes |
your OSM fixes file |
source.pbf_path (or pbf_path) |
none |
-p |
the .osm.pbf file |
source.type |
pbf |
|
pbf, or duckdb to cut an area out of the built database source.source_db, with its edge ids |
boundary
Give one of these. With none, the whole file is built. The boundary file.
| Key |
Does |
boundary.path (or boundary_path) |
a GeoJSON file |
boundary.place |
a place name, for example Monaco, as duckosm boundary finds it |
boundary.bbox |
a box, [west, south, east, north] in degrees |
boundary.h3_cell (or h3_cell) |
an H3 cell |
boundary.buffer_m |
grows the boundary by this many metres first (default 0) |
options
Each step is on by default, except where the table says off.
| Key |
Default |
Does |
options.build_graph |
on |
the turn graph edge_graph |
options.extract_restrictions |
on |
driving: the turn restrictions |
options.merge_segments |
on |
joins a chain of edges that is one road (merged edges) |
options.global_junctions |
on |
cuts each mode at the same junctions, so a road has the same edge_id in each mode |
options.process_speeds, options.calculate_costs |
on |
maxspeed_kmh and cost_s |
options.functional_types |
on |
walk_type and cycle_type |
options.cycling_dismount |
on |
footways in cycling, as dismount edges |
options.infer_separate_sidewalks |
on |
walking uses the sidewalk lines of a road, not the road |
options.h3_indexing, options.h3_resolution |
on, 8 |
the H3 columns |
options.tile_indexing |
on |
the zoom 28 tile keys |
options.build_features |
on |
the base-map layers |
options.sea |
overture |
features.ocean from Overture Maps; false for none |
options.levels |
on |
the drawing order of the roads, with your edits kept |
options.building_faces |
off |
the walls of the buildings |
options.bus_routes |
on |
the bus routes on the driving edges |
options.boundary_cells, options.boundary_cell_resolutions |
off |
the H3 cells that cover the boundary |
options.chains |
on |
driving.chains: the driving edges joined where the road only continues. The SUMO export with merge needs it. Command line: --no-chains |
options.clip_strategy |
|
no effect: the build cuts the network as osmium's complete_ways and raw.* as smart. To cut a file with another strategy, use duckosm clip-pbf --strategy |
options.engine |
|
no effect: the network step is always the Rust engine. An old config with this key still works |
options.memory_limit, options.threads |
DuckDB's own |
the memory and the threads of DuckDB when it loads raw.* |
clip
| Key |
Default |
Does |
clip.connectivity_rescue |
on |
walking and cycling: connects dangling paths |
clip.connect_snap_m |
10.0 |
the largest gap that it connects, in metres |
clip.predicate |
intersects |
source.type: duckdb only: the edges that are copied: intersects, within or centroid |
elevation
The DEM of the area: its ground reference. Give it one time for each area here.
--dem on the command line wins over this section.
elevation:
dem: data/dem/fabdem-monaco.tif # a GeoTIFF in EPSG:4326, 32-bit floats
product: DTM # DTM (bare earth) or DSM (surface)
vertical_datum: EGM2008
license: CC-BY-NC-SA-4.0
reference: true # false: a test or a second surface; then the 3 keys above can be unknown
validation, multimodal, report, viz
| Key |
Default |
Does |
validation.enabled |
off |
checks the build and stops on a fault (validation.fail_on_error) |
multimodal.enabled |
off |
the mm tables, for trips across modes. multimodal.transfer_s (60) is the cost of each change of mode |
report.enabled |
off |
a report of the build, in reports/ |
viz.enabled |
off |
the maps of the build, as duckosm viz |
More keys: validation.assert_* (each check, Check a build), multimodal.transfer_costs
(a cost for each direction, for example {"walking->driving": 60}), multimodal.node_costs (a CSV or Parquet file with the cost of a change at some junctions) and multimodal.only_listed_nodes (allow changes only there), viz.basemap (a web background under the maps) and
options.simplify_batches (no effect, an old config with this key still works). The template of duckosm init-config explains each one.