From a2519378d7a781f93d02b1afd7438008de2e4fd7 Mon Sep 17 00:00:00 2001 From: Paul Haesler Date: Fri, 8 Nov 2024 12:23:24 +1100 Subject: [PATCH] Fix tests - pass boxed point instead of raw point. --- datacube_ows/feature_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacube_ows/feature_info.py b/datacube_ows/feature_info.py index 53f8eeb4f..8505f0c91 100644 --- a/datacube_ows/feature_info.py +++ b/datacube_ows/feature_info.py @@ -160,7 +160,7 @@ def feature_info(args: dict[str, str]) -> FlaskResponse: stacker = DataStacker(params.layer, geo_point_geobox, params.times) # --- Begin code section requiring datacube. cfg = get_config() - all_time_datasets = stacker.datasets_all_time(point=geo_point) + all_time_datasets = stacker.datasets_all_time(point=geo_point_geobox.extent) # Taking the data as a single point so our indexes into the data should be 0,0 h_coord = cast(str, cfg.published_CRSs[params.crsid]["horizontal_coord"]) @@ -176,7 +176,7 @@ def feature_info(args: dict[str, str]) -> FlaskResponse: global_info_written = False feature_json["data"] = [] fi_date_index: dict[datetime, RAW_CFG] = {} - time_datasets = stacker.datasets(all_flag_bands=True, point=geo_point) + time_datasets = stacker.datasets(all_flag_bands=True, point=geo_point_geobox.extent) data = stacker.data(time_datasets, skip_corrections=True) if data is not None: for dt in data.time.values: