From 3679ba6463ba03b08dac433b96de685426c23a01 Mon Sep 17 00:00:00 2001 From: Nikola Date: Mon, 20 Feb 2023 10:33:16 +0100 Subject: [PATCH 1/2] fixed bug to query by parent product --- eoxserver/services/ows/wps/processes/get_cloud_coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoxserver/services/ows/wps/processes/get_cloud_coverage.py b/eoxserver/services/ows/wps/processes/get_cloud_coverage.py index 21df2930e..e7a8f9728 100644 --- a/eoxserver/services/ows/wps/processes/get_cloud_coverage.py +++ b/eoxserver/services/ows/wps/processes/get_cloud_coverage.py @@ -102,7 +102,7 @@ def execute( coverages = models.Coverage.objects.filter( parent_product__begin_time__lte=end_time, parent_product__end_time__gte=begin_time, - footprint__intersects=wkt_geometry, + parent_product__footprint__intersects=wkt_geometry, coverage_type__name="SCL", ).order_by("parent_product__begin_time") From 5cec044222eb8c9a3409ce3639d88dbed9544ac4 Mon Sep 17 00:00:00 2001 From: Nikola Date: Mon, 20 Feb 2023 11:13:44 +0100 Subject: [PATCH 2/2] added todo in case future intervention is needed --- eoxserver/services/ows/wps/processes/get_cloud_coverage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eoxserver/services/ows/wps/processes/get_cloud_coverage.py b/eoxserver/services/ows/wps/processes/get_cloud_coverage.py index e7a8f9728..1af36db3c 100644 --- a/eoxserver/services/ows/wps/processes/get_cloud_coverage.py +++ b/eoxserver/services/ows/wps/processes/get_cloud_coverage.py @@ -99,6 +99,7 @@ def execute( ): wkt_geometry = geometry[0].text + # TODO Use queue object for more complex query if parent_product__footprint is not enough coverages = models.Coverage.objects.filter( parent_product__begin_time__lte=end_time, parent_product__end_time__gte=begin_time,