|
1 | 1 | # ================================================================= |
2 | | - |
| 2 | +# |
3 | 3 | # Authors: Tom Kralidis <tomkralidis@gmail.com> |
4 | 4 | # Francesco Bartoli <xbartolone@gmail.com> |
5 | 5 | # Sander Schaminee <sander.schaminee@geocat.net> |
|
8 | 8 | # Ricardo Garcia Silva <ricardo.garcia.silva@geobeyond.it> |
9 | 9 | # Bernhard Mallinger <bernhard.mallinger@eox.at> |
10 | 10 | # |
11 | | -# Copyright (c) 2024 Tom Kralidis |
| 11 | +# Copyright (c) 2025 Tom Kralidis |
12 | 12 | # Copyright (c) 2025 Francesco Bartoli |
13 | 13 | # Copyright (c) 2022 John A Stevenson and Colin Blackburn |
14 | 14 | # Copyright (c) 2023 Ricardo Garcia Silva |
|
52 | 52 | from pygeoapi.provider.base import ( |
53 | 53 | ProviderGenericError, ProviderItemNotFoundError) |
54 | 54 | from pygeoapi.util import ( |
55 | | - filter_providers_by_type, get_provider_by_type, render_j2_template, |
56 | | - to_json, filter_dict_by_key_value |
| 55 | + filter_providers_by_type, get_provider_by_type, get_typed_value, |
| 56 | + render_j2_template, to_json, filter_dict_by_key_value |
57 | 57 | ) |
58 | 58 |
|
59 | 59 | from . import (APIRequest, API, F_COVERAGEJSON, F_HTML, F_JSON, F_JSONLD, |
@@ -334,7 +334,10 @@ def get_collection_edr_query(api: API, request: APIRequest, |
334 | 334 | within_units = request.params.get('within-units') |
335 | 335 |
|
336 | 336 | LOGGER.debug('Processing z parameter') |
337 | | - z = request.params.get('z') |
| 337 | + try: |
| 338 | + z = get_typed_value(request.params.get('z')) |
| 339 | + except TypeError: |
| 340 | + z = None |
338 | 341 |
|
339 | 342 | if parameternames and not any((fld in parameternames) |
340 | 343 | for fld in p.get_fields().keys()): |
|
0 commit comments