map_editor::model

Function dump_to_osm

Source
fn dump_to_osm(map: &RawMap) -> Result<(), Error>
Expand description

Express a RawMap as a .osm file. Why not just save the RawMap? The format may change over time, and even if a RawMap is saved as JSON, manually updating it is annoying. This is used to create synthetic maps that will never go bad – there will always be a pipeline to import a .osm file, so actually, .osm is a stable-over-time format.

If this RawMap was created from real OSM, this will absolutely mangle any original IDs.