From 7a5995055c6837b608e328e371916be116bcba24 Mon Sep 17 00:00:00 2001 From: Benjamin Kreuscher Date: Sun, 4 Jun 2023 21:40:37 +0200 Subject: [PATCH] let osmosis use HDD instead of RAM - fixes https://github.com/treee111/wahooMapsCreator/issues/145#issuecomment-1537518024 - use parameter "type=hd". Might be a little slower... but no more crash. --- wahoomc/osm_maps_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wahoomc/osm_maps_functions.py b/wahoomc/osm_maps_functions.py index 9eec9f15..b3cabc68 100644 --- a/wahoomc/osm_maps_functions.py +++ b/wahoomc/osm_maps_functions.py @@ -578,7 +578,7 @@ def create_map_files(self, save_cruiser, tag_wahoo_xml): # Non-Windows else: cmd = ['osmosis', '--rb', merged_file, - '--mw', 'file='+out_file_map] + '--mw', 'file='+out_file_map, 'type=hd'] cmd.append( f'bbox={tile["bottom"]:.6f},{tile["left"]:.6f},{tile["top"]:.6f},{tile["right"]:.6f}')