elasticsearch
elasticsearch copied to clipboard
Provide an endpoint with map metadata in the Vector Tile Search API
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.
This would help with this issue: https://github.com/geopython/pygeoapi/issues/970
Pinging @elastic/es-analytics-geo (Team:Analytics)
Hey there @doublebyte1 Thanks! this is interesting, can you provide a use case(s) so we can understand the need a bit better? thx!
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:
- https://github.com/kartena/leaflet-tilejson#example
- https://openlayers.org/en/latest/examples/tilejson.html
@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! 🙏🏽
@wchaparro any updates on this?