[Geopackage] New blog post: what about vector tiles in GeoPackage?

Even Rouault even.rouault at spatialys.com
Wed Jun 27 15:10:43 EDT 2018


On mercredi 27 juin 2018 14:53:01 CEST Jeff Yutzler via Geopackage wrote:
> http://geopackage.blogspot.com/2018/06/what-about-vector-tiles-in-geopackage
> .html

Jeff,

We discussed that recently on the gdal-dev mailing list.

So yes there's pretty much everything needed to support MapBox Vector Tiles as 
GeoPackage. It would be a shame to reinvent a new encoding whereas MVT has now 
become a industry standard (although MapBox is currently working on a V3 of 
the format)

One point though is that it might be appopriate to have some way to describe 
the attribute structure of layers, similarly to the 'json' entry in the 
metadata tables of a .mbtiles storing MVT, to avoid having to read the tiles 
to figure out what vector layer they contain and their attribute

Example taken from a MBTiles:
{"vector_layers":[{"id":"water","minzoom":0,"maxzoom":14,"fields":
{"class":"String"}},{"id":"waterway","minzoom":0,"maxzoom":14,"fields":
{"name":"String","class":"String"}},{"id":"landcover","minzoom":0,"maxzoom":
14,"fields":{"class":"String","subclass":"String"}},{"id":"landuse","minzoom":
0,"maxzoom":14,"fields":{"class":"String"}},{"id":"park","minzoom":
0,"maxzoom":14,"fields":{"class":"String"}},{"id":"boundary","minzoom":
0,"maxzoom":14,"fields":{"admin_level":"Number"}},{"id":"aeroway","minzoom":
0,"maxzoom":14,"fields":{"class":"String"}},{"id":"transportation","minzoom":
0,"maxzoom":14,"fields":
{"class":"String","oneway":"Number","ramp":"Number","brunnel":"String","service":"String"}},
{"id":"building","minzoom":0,"maxzoom":14,"fields":
{"render_height":"Number","render_min_height":"Number"}},
{"id":"water_name","minzoom":0,"maxzoom":14,"fields":
{"name":"String","name_en":"String","class":"String"}},
{"id":"transportation_name","minzoom":0,"maxzoom":14,"fields":
{"name":"String","ref":"String","ref_length":"Number","class":"String"}},
{"id":"place","minzoom":0,"maxzoom":14,"fields":
{"name":"String","name_en":"String","class":"String","rank":"Number","capital":"Number"}},
{"id":"housenumber","minzoom":0,"maxzoom":14,"fields":
{"housenumber":"String"}},{"id":"poi","minzoom":0,"maxzoom":14,"fields":
{"name":"String","name_en":"String","class":"String","subclass":"String","rank":"Number"}}]}

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Geopackage mailing list