Commit 24d06086 authored by Cresson Remi's avatar Cresson Remi
Browse files

REFAC: rename method

1 merge request!11Vector bbox
Pipeline #33400 passed with stages
in 1 minute and 12 seconds
Showing with 2 additions and 2 deletions
+2 -2
......@@ -92,7 +92,7 @@ def extent_to_bbox(extent):
return xmin, xmax, ymin, ymax
def get_bbox_wgs84(gdal_ds):
def get_bbox_wgs84_from_gdal_ds(gdal_ds):
"""
Returns the bounding box in WGS84 CRS from a GDAL dataset
:param gdal_ds: GDAL dataset
......
......@@ -20,7 +20,7 @@ idx = indexation.Index(scenes)
print("search roi")
if params.roi.lower().endswith(".tif"):
gdal_ds = gdal.Open(params.roi)
bbox = utils.get_bbox_wgs84(gdal_ds=gdal_ds)
bbox = utils.get_bbox_wgs84_from_gdal_ds(gdal_ds=gdal_ds)
else:
bbox = utils.get_bbox_wgs84_from_vector(params.roi)
matches = idx.find(bbox_wgs84=bbox)
......
File deleted
File deleted
Supports Markdown
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