From fe3d73c2c97044e689dbc4f3dcb422ab1880da25 Mon Sep 17 00:00:00 2001 From: marceloprates Date: Mon, 3 Mar 2025 19:08:11 -0300 Subject: [PATCH] Changed location of elevation file --- prettymaps/fetch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/prettymaps/fetch.py b/prettymaps/fetch.py index 6d9b126..cd864c2 100644 --- a/prettymaps/fetch.py +++ b/prettymaps/fetch.py @@ -125,9 +125,12 @@ def obtain_elevation(gdf): # Configure the bounding box for the elevation library - output_file = os.path.join(os.path.dirname(os.getcwd()), "elevation.tif") + output_file = os.path.join(os.getcwd(), "elevation.tif") elevation.clip( - bounds=(min_lon, min_lat, max_lon, max_lat), output=output_file, margin="10%" + bounds=(min_lon, min_lat, max_lon, max_lat), + output=output_file, + margin="10%", + cache_dir=".", ) # subprocess.run(