Skip to content

Commit 9f596a1

Browse files
committed
Fix flake8 errors
1 parent a034d15 commit 9f596a1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pygeoapi/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
'MVT-tippecanoe': 'pygeoapi.provider.mvt_tippecanoe.MVTTippecanoeProvider', # noqa: E501
5454
'MVT-elastic': 'pygeoapi.provider.mvt_elastic.MVTElasticProvider',
5555
'MVT-proxy': 'pygeoapi.provider.mvt_proxy.MVTProxyProvider',
56-
'MVT-postgresql': 'pygeoapi.provider.mvt_postgresql.MVTPostgreSQLProvider',
56+
'MVT-postgresql': 'pygeoapi.provider.mvt_postgresql.MVTPostgreSQLProvider', # noqa: E501
5757
'OracleDB': 'pygeoapi.provider.oracle.OracleProvider',
5858
'OGR': 'pygeoapi.provider.ogr.OGRProvider',
5959
'OpenSearch': 'pygeoapi.provider.opensearch_.OpenSearchProvider',

pygeoapi/provider/mvt_postgresql.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
class MVTPostgreSQLProvider(BaseMVTProvider):
5151
"""
5252
MVT PostgreSQL Provider
53-
Provider for serving tiles rendered on-the-fly from
53+
Provider for serving tiles rendered on-the-fly from
5454
feature tables in PostgreSQL
5555
"""
5656

@@ -66,7 +66,8 @@ def __init__(self, provider_def):
6666
super().__init__(provider_def)
6767

6868
pg_def = deepcopy(provider_def)
69-
# delete the zoom option before initializing the PostgreSQL provider, it breaks otherwise
69+
# delete the zoom option before initializing the PostgreSQL provider
70+
# that provider breaks otherwise
7071
del pg_def["options"]["zoom"]
7172
self.postgres = PostgreSQLProvider(pg_def)
7273

@@ -147,7 +148,7 @@ def get_tiles(self, layer=None, tileset=None,
147148

148149
query = ''
149150
if tileset == TileMatrixSetEnum.WEBMERCATORQUAD.value.tileMatrixSet:
150-
if not self.is_in_limits(TileMatrixSetEnum.WEBMERCATORQUAD.value, z, x, y):
151+
if not self.is_in_limits(TileMatrixSetEnum.WEBMERCATORQUAD.value, z, x, y): # noqa
151152
raise ProviderTileNotFoundError
152153

153154
query = text("""
@@ -164,7 +165,7 @@ def get_tiles(self, layer=None, tileset=None,
164165
""".format(geom=self.geom, table=self.table, fields=fields)) # noqa
165166

166167
if tileset == TileMatrixSetEnum.WORLDCRS84QUAD.value.tileMatrixSet:
167-
if not self.is_in_limits(TileMatrixSetEnum.WORLDCRS84QUAD.value, z, x, y):
168+
if not self.is_in_limits(TileMatrixSetEnum.WORLDCRS84QUAD.value, z, x, y): # noqa
168169
raise ProviderTileNotFoundError
169170

170171
query = text("""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy