persist raw map artifact during oneshot import

This commit is contained in:
Michael Kirk 2020-09-22 14:44:06 -07:00 committed by Dustin Carlino
parent 530a9ee4e4
commit 66220e0a57

View File

@ -225,6 +225,11 @@ fn oneshot(osm_path: String, clip: Option<String>, drive_on_right: bool, build_c
},
&mut timer,
);
// Often helpful to save intermediate representation in case user
// wants to load into map_editor
abstutil::write_binary(abstutil::path_raw_map(&name), &raw);
let map = map_model::Map::create_from_raw(raw, build_ch, &mut timer);
timer.start("save map");
map.save();