Skip to content

Commit 14264b2

Browse files
committed
- hardcoded TMS for mv_elastic and mv_tippecanoe providers
1 parent 8d5606e commit 14264b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pygeoapi/provider/mvt_elastic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_tiles(self, layer=None, tileset=None,
179179
resp = session.get(f'{base_url}/{layer}/{z}/{y}/{x}{url_query}', json=data) # noqa
180180

181181
if resp.status_code == 404:
182-
if (self.is_in_limits(self.get_tilematrixset(tileset), z, x, y)): # noqa
182+
if (self.is_in_limits(TileMatrixSetEnum.WEBMERCATORQUAD.value, z, x, y)): # noqa
183183
return None
184184
raise ProviderTileNotFoundError
185185

pygeoapi/provider/mvt_tippecanoe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get_tiles_from_url(self, layer=None, tileset=None,
188188
resp = session.get(f'{base_url}/{layer}/{z}/{y}/{x}{extension}') # noqa
189189

190190
if resp.status_code == 404:
191-
if (self.is_in_limits(self.get_tilematrixset(tileset), z, x, y)): # noqa
191+
if (self.is_in_limits(TileMatrixSetEnum.WEBMERCATORQUAD.value, z, x, y)): # noqa
192192
return None
193193
raise ProviderTileNotFoundError
194194

@@ -220,7 +220,7 @@ def get_tiles_from_disk(self, layer=None, tileset=None,
220220
with open(service_url_path, mode='rb') as tile:
221221
return tile.read()
222222
except FileNotFoundError as err:
223-
if (self.is_in_limits(self.get_tilematrixset(tileset), z, x, y)): # noqa
223+
if (self.is_in_limits(TileMatrixSetEnum.WEBMERCATORQUAD.value, z, x, y)): # noqa
224224
return None
225225
raise ProviderTileNotFoundError(err)
226226

0 commit comments

Comments
 (0)