Skip to content

Commit

Permalink
Retrieve properties from elasticsearch on get tile request (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 committed May 10, 2024
1 parent 6a6ec9c commit 737b1bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/data-publishing/ogcapi-tiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pygeoapi core tile providers are listed below, along with supported features.
:align: left

`MVT-tippecanoe`_,❌,✅,✅,❌
`MVT-elastic`_,✅,,✅,❌
`MVT-elastic`_,✅,,✅,❌
`MVT-proxy`_,❓,❓,❓,❓
`WMTSFacade`_,✅,❌,✅,✅

Expand Down
3 changes: 2 additions & 1 deletion pygeoapi/provider/mvt_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def get_tiles(self, layer=None, tileset=None,

try:
with requests.Session() as session:
data = {'fields': ['*']}
session.get(base_url)
resp = session.get(f'{base_url}/{layer}/{z}/{y}/{x}{url_query}') # noqa
resp = session.get(f'{base_url}/{layer}/{z}/{y}/{x}{url_query}', json=data) # noqa
resp.raise_for_status()
return resp.content
except requests.exceptions.RequestException as e:
Expand Down

0 comments on commit 737b1bd

Please sign in to comment.