Skip to content

Instantly share code, notes, and snippets.

@ustroetz
Last active Sep 8, 2017
Embed
What would you like to do?
Get MVT from Postgis
SELECT ST_AsMVT('test', 4096, 'geom', q)
FROM (
SELECT
ST_AsMVTGeom(
geom,
TileBBox(z, x, y, 3857), /* https://github.com/mapbox/postgis-vt-util/blob/master/src/TileBBox.sql */
4096,
0,
false
) geom
FROM test
) q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment