[postgis-devel] ST_AsMVTGeom() feature size limit

Paul Ramsey pramsey at cleverelephant.ca
Tue May 18 15:31:17 PDT 2021


I was interested to find that ST_AsMVTGeom drops features that fall below 1/2 a pixel in size.

postgis30=# select st_astext(st_asmvtgeom('LINESTRING(10 10, 11 10)', 'LINESTRING(0 0, 16384 16384)'::geometry));
 st_astext 
-----------
 
(1 row)

There's no configuration option to avoid this behaviour, and if you map a large enough area that your feature size falls below a pixel you end up with big blanks in your map. Have there been no complaints about this before?

P.


More information about the postgis-devel mailing list