I am implementing a Tile Server with the help of PostGIS.
Running this query:
SELECT ST_AsMVT(tile) FROM (
SELECT
__FEATURES__,
ST_AsMVTGeom(
ST_Transform(__GEOM__, __SRID__),
ST_Transform(ST_TileEnvelope(?, ?, ?), __SRID__),
4096,
256,
false
) as geom
FROM __SCHEMA__.__TABLE__
WHERE
__GEOM__ && ST_Transform(ST_TileEnvelope(?, ?, ?), __SRID__)
) AS tile
In 3857 projection I get a very good result.
But if I use geometries in 32632 I get the borders of the geometries not perfectly aligned and a zig-zag effect.
Why?
I was able to solve the issue with this query:
Where
__PROJ__,
is+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs