[postgis-users] How to use ST_AsMVT to serve MVT to web clients?
zimmicz
zimmicz+nabble at gmail.com
Sun Aug 6 05:20:07 PDT 2017
Hi,
I'm experimenting with the new 2.4.0 and ST_AsMVT, but I can't get my head
around the way to send it to the web client (e. g. a leafet map). I have a
CREATE TABLE cadastre_area (
code integer,
name text,
geom geometry(MULTIPOLYGON, 5514)
);
I'm running
SELECT ST_AsMVT('test', 4096, 'geom', q) FROM (SELECT code, name, geom FROM
cadastre_area) q;
for testing purposes and getting
\x1aa5dbd0070a047465737412e216120400000101180322d7160987913f8db38e01aa59160e2a010412012a0624060e001410420a1a00203b0a3914190e15085912010a0f0c0f06370804080a0e0e0234090e0
as a result. What's the proper way to pass it down to the browser?
I use [apiary](http://private-43de6-postgismvt.apiary-mock.com/mvt) for
testing.
--
View this message in context: http://postgis.17.x6.nabble.com/How-to-use-ST-AsMVT-to-serve-MVT-to-web-clients-tp5011416.html
Sent from the PostGIS - User mailing list archive at Nabble.com.
More information about the postgis-users
mailing list