Skip to content

Commit

Permalink
add test + return range on collection level
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Nov 27, 2024
1 parent cd2eb82 commit 0ec023a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions autotest/autotest_services/tests/wms/test_v13.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,16 @@ def getRequest(self):
def getFileExtension(self, file_type):
return "png"

class WMS13GetLegendGraphicTestCaseCOllectionLevel(wmsbase.WMS13GetLegendTestCase):
""" Test a GetLegendGraphic request on Collection level. """

def getRequest(self):
params = "service=WMS&version=1.3.0&request=GetLegendGraphic&format=image/png&layer=MER_FRS_1P_reduced"
return params, "kvp"

def getFileExtension(self, file_type):
return "png"

class WMS13GetLegendGraphicStyledTestCase(wmsbase.WMS13GetLegendTestCase):
""" Test a GetLegendGraphic request for a dataset with an associated style. """

Expand Down
2 changes: 1 addition & 1 deletion eoxserver/services/ows/wms/layermapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def lookup_layer(self, layer_name, suffix, style, filters_expressions,

if not has_products:
coverages = self.iter_coverages(
eo_object, filters_expressions, sort_by
eo_object, filters_expressions, sort_by, limit
)

if suffix == '':
Expand Down

0 comments on commit 0ec023a

Please sign in to comment.