elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.99k stars 24.76k forks source link

Provide an endpoint with map metadata in the Vector Tile Search API #90146

Open doublebyte1 opened 2 years ago

doublebyte1 commented 2 years ago

Description

"Elasticsearch 7.15 introduces a new endpoint that generates vector tiles from geospatial data stored in Elasticsearch."

It would be great to publish also an endpoint containing the map metadata, as this provides important information to the clients that render the vector tiles (e.g.: title, attribution, minZoom, maxZoom and bounds).

OGC has published a format for describing tileset metadata in the 2D TMS standard. The tileJSON format, from Mapbox is also widely used to describe tileset metadata.

doublebyte1 commented 2 years ago

This would help with this issue: https://github.com/geopython/pygeoapi/issues/970

elasticsearchmachine commented 2 years ago

Pinging @elastic/es-analytics-geo (Team:Analytics)

wchaparro commented 2 years ago

Hey there @doublebyte1 Thanks! this is interesting, can you provide a use case(s) so we can understand the need a bit better? thx!

KoalaGeo commented 2 years ago

If making a web map using Leaflet or Openlayers they can be pointed at the TileJSON file to define the layer & bring in the tiles more simply:

doublebyte1 commented 1 year ago

@wchaparro in pygeoapi, we would like to add elasticsearch as a provider for vector tiles.

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

Right now, we are unable to provide tilesetmetadata for elasticsearch metadata, like we do for mapbox vector tiles, and for that reason the tilesetmetadata is left empty.

If you could publish this information in the OGC 2D TMS format , it would be awesome, but otherwise we can do our best effort to generate it from whatever metadata you pass us! 😄

Thank you! 🙏🏽

doublebyte1 commented 1 year ago

@wchaparro we added ES tiles support in pygeoapi with this PR, but the tile metadata is missing.

es-vtiles

doublebyte1 commented 1 year ago

@wchaparro any updates on this?