[postgis-devel] Proposal: Adding buffer parameter to ST_TileEnvelope()

rmrodriguez at carto.com rmrodriguez at carto.com
Wed Nov 13 10:04:19 PST 2019


On Wed, Nov 13, 2019 at 6:44 PM Yuri Astrakhan <yuriastrakhan at gmail.com> wrote:
>
> Michael, thank you for your example. Per Paul's previous email, it made me realize that unlike ST_AsMVTGeom, ST_TileEnvelope does not need to understand the concept of extent (internal "pixels"), but instead can work just as well with percentages.
>
> Updated proposal:   buffer is a percentage increase of the original tile, limited to SRID space.  E.g.  buffer=0.5 would grow the tile by 50%, but if zoom=0, it would not grow at all.  If the tile is on the edge (e.g. 0,0), growing it should extend the longitude across the anti-meridian line, but should not grow northwards (srid limit).


Would that be 0.5x bigger area or 50% bigger sides, thus being 1.25x
bigger area?


-- 
Raúl Marín Rodríguez
carto.com


More information about the postgis-devel mailing list