From 8478fbf11354eb4c0129ca3fb2ecfc28f94a6776 Mon Sep 17 00:00:00 2001 From: Emilio Mariscal Date: Wed, 28 Aug 2024 11:16:39 -0300 Subject: [PATCH] Fix for region path --- osm_rawdata/geofabrik.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osm_rawdata/geofabrik.py b/osm_rawdata/geofabrik.py index 836e6bc..b277c7e 100755 --- a/osm_rawdata/geofabrik.py +++ b/osm_rawdata/geofabrik.py @@ -106,7 +106,8 @@ def main(): ) quit() - uri = f"http://download.geofabrik.de/{region.lower()}/{args.file.lower()}-latest.osm.pbf" + uri = f"http://download.geofabrik.de/{region.lower().replace(" ","-")}/{args.file.lower()}-latest.osm.pbf" + print(uri) outfile = f"./{args.file}-latest.osm.pbf" try: dl = SmartDL(uri, dest=outfile, connect_default_logger=False)