Skip to content

Commit

Permalink
Merge pull request #555 from EOxServer/wps-process-coverage-fix
Browse files Browse the repository at this point in the history
fixed bug to query by parent product
  • Loading branch information
jankovicgd authored Feb 20, 2023
2 parents f26021e + 5cec044 commit 651f929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eoxserver/services/ows/wps/processes/get_cloud_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ 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,
footprint__intersects=wkt_geometry,
parent_product__footprint__intersects=wkt_geometry,
coverage_type__name="SCL",
).order_by("parent_product__begin_time")

Expand Down

0 comments on commit 651f929

Please sign in to comment.