elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

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

Open doublebyte1 opened this issue 2 years ago • 3 comments

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 avatar Sep 19 '22 20:09 doublebyte1

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

doublebyte1 avatar Sep 19 '22 20:09 doublebyte1

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

elasticsearchmachine avatar Sep 19 '22 23:09 elasticsearchmachine

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

wchaparro avatar Sep 20 '22 13:09 wchaparro

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

KoalaGeo avatar Sep 22 '22 14:09 KoalaGeo

@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 avatar Nov 27 '22 13:11 doublebyte1

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

es-vtiles

doublebyte1 avatar Dec 01 '22 13:12 doublebyte1

@wchaparro any updates on this?

doublebyte1 avatar Jun 24 '23 16:06 doublebyte1