Skip to content

Commit

Permalink
Mitigating issue of missing/duplicate items in
Browse files Browse the repository at this point in the history
GetEOCoverage response
  • Loading branch information
constantinius committed Sep 17, 2021
1 parent e36bcbd commit 7201824
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eoxserver/services/ows/wcs/v20/geteocoverageset.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def handle(self, request):
product__collections__in=collections,
**filters
)
)
).distinct()

# Allow metadata queries on coverage itself or on the
# parent product if available
Expand Down Expand Up @@ -300,9 +300,7 @@ def handle(self, request):
Q( # Mosaics within directly referenced Collections
mosaic__collections__in=collections
)
).select_subclasses(models.Coverage, models.Mosaic)

all_coverages_qs = all_coverages_qs.order_by('identifier')
).distinct().select_subclasses(models.Coverage, models.Mosaic)

# limit coverages according to the number of dataset series
offset = decoder.start_index
Expand Down

0 comments on commit 7201824

Please sign in to comment.