Skip to content

Commit 82f1db3

Browse files
committed
- corrected condition that tests the limits of tms
1 parent 4e437c2 commit 82f1db3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pygeoapi/provider/base_mvt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def is_in_limits(self, tilematrixset, z, x, y):
285285
"""
286286

287287
try:
288-
if int(x) <= tilematrixset.tileMatrices[int(z)]['matrixWidth'] and int(y) <= tilematrixset.tileMatrices[int(z)]['matrixHeight']: # noqa
288+
if int(x) < tilematrixset.tileMatrices[int(z)]['matrixWidth'] and int(y) < tilematrixset.tileMatrices[int(z)]['matrixHeight']: # noqa
289289
return True
290290
return False
291291
except ValueError as err:

tests/api/test_tiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_get_collection_tiles_data(config, api_):
8181

8282
rsp_headers, code, response = get_collection_tiles_data(
8383
api_, req, 'naturalearth/lakes',
84-
matrix_id='WebMercatorQuad', z_idx=0, x_idx=2, y_idx=2)
84+
matrix_id='WebMercatorQuad', z_idx=0, x_idx=1, y_idx=1)
8585
assert code == HTTPStatus.NOT_FOUND
8686

8787

0 commit comments

Comments
 (0)