<div dir="ltr">I'm using ST_AsMVTGeom in a function, to extract map box tiles, from a database, which consist of lat/lon points that I then render as Voronoi polygons. However, the ST_AsMVTGeom buffer does not appear to be working, because the Voronoi polygons are not connected between tiles. I'm using PostGIS 3.0, on PostgreSQL 11. Below is the function:<div><div><br></div><div>CREATE OR REPLACE<br>-- <a href="http://localhost:7800/public.region3_sim_storms_geom/13/2362/3138.pbf?properties=node,bathymetry" target="_blank">http://localhost:7800/public.region3_sim_storms_geom/13/2362/3138.pbf?properties=node,bathymetry</a><br>FUNCTION public.region3_sim_storms_geom(z integer, x integer, y integer)<br>RETURNS bytea<br>AS $$<br>  WITH<br>  bounds AS (<br>    SELECT ST_TileEnvelope(z, x, y) AS geometry<br>  ),<br>  mvtgeom AS (<br>    SELECT ST_AsMVTGeom(ST_Transform(geom, 3857), bounds.geometry, 4096, 256, true) AS geom, node, bathymetry<br>    FROM r3sim_fort_geom, bounds<br>    WHERE ST_Intersects(geom, ST_Transform(bounds.geometry, 4326))<br>  )<br>  SELECT ST_AsMVT(mvtgeom.*, 'public.region3_sim_storms_geom')<br>  FROM mvtgeom;<br>$$<br>LANGUAGE 'sql'<br>STABLE<br>PARALLEL SAFE;<br><br>COMMENT ON FUNCTION public.region3_sim_storms_geom IS 'Given a tile address query database.';<br></div><div><br></div><div>I've tried many variations, using the default settings, and inputting settings.</div></div><div><br></div><div>I have been able to display the same data as Voronoi polygons, without the tile connection problem <a href="https://github.com/CrunchyData/pg_tileserv">using pg_tileserv</a>. </div><div><br></div><div>Thanks</div><div>Jim</div></div>