pygeoapi icon indicating copy to clipboard operation
pygeoapi copied to clipboard

- Added support for elasticsearch tiles in the mvt provider

Open doublebyte1 opened this issue 2 years ago • 5 comments

Overview

Version 8 of ES gives support to publishing data as vector tiles. This PR leverages that, to enable another vector tiles backend on the mvt provider. Because ES does not provide a tilejson, I introduce the option of using a provider with no tile metadata.

Related Issue / Discussion

https://github.com/geopython/pygeoapi/issues/970

Additional Information

In order to use this feature, we need ES8, so I introduced another PR for using that in the examples: https://github.com/geopython/pygeoapi/pull/985 As I explain on that PR, ES needs to run on compatibility mode, or it won't work with the python client.

Contributions and Licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • [x] I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
  • [x] I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

doublebyte1 avatar Sep 16 '22 07:09 doublebyte1

@doublebyte1 can you add ES to the provider table & example config in https://github.com/geopython/pygeoapi/blob/master/docs/source/data-publishing/ogcapi-tiles.rst ?

KoalaGeo avatar Sep 21 '22 13:09 KoalaGeo

Geopython folks chat (pti-xjmc-syg - Sep 23, 2022) 1

Maybe it's an option to refactor to this architecture

doublebyte1 avatar Sep 23 '22 12:09 doublebyte1

Geopython folks chat (pti-xjmc-syg - Sep 23, 2022) 1

Maybe it's an option to refactor to this architecture

Could also have PostGres provider like crunchy data pg_tileserv.

Incidentally Plugging pg_tileserv into pygeoapi doesn't currently work as the metadata is not on the same path pygeoapi expects

KoalaGeo avatar Sep 23 '22 16:09 KoalaGeo

@KoalaGeo That's why I think it would be a good idea to detach the tile metadata from the data

doublebyte1 avatar Oct 01 '22 03:10 doublebyte1

@KoalaGeo That's why I think it would be a good idea to detach the tile metadata from the data

👍👍

I raised https://github.com/geopython/pygeoapi/issues/820 previously and started https://github.com/geopython/pygeoapi/pull/821 (some good discussion points) but had to close as my python skills are limited

KoalaGeo avatar Oct 01 '22 13:10 KoalaGeo