Commit fe2e24bd authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: problem with bounds coordinate in elevation.

parent d5fd9b37
......@@ -68,7 +68,7 @@ def download_srtm1(roi_vector, outfile, cache_dir=Path('~/.moringa/cache').expan
# bounds = gpd.read_file(roi_vector).to_crs(4326).bounds.values[0, :]
# bounds = getSQLiteExtent_WGS84(roi_vector)
bounds = getGeoJSONExtent_WGS84(roi_vector)
bounds = [bounds[i] for i in [1,0,3,2]]
#bounds = [bounds[i] for i in [1,0,3,2]]
elevation.clip(bounds, outfile, cache_dir=cache_dir, max_download_tiles=max_download_tiles)
return outfile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment