[postgis-users] ST_CreateOverview doesn't honor tilesize

Senshi tassilo.m at gmail.com
Wed Aug 30 05:52:51 PDT 2017


Hello,


when creating an overview, the tilesize of the original tiles is not fully
respected.

If you have a 2x2 grid of tiles with 256x256 pixels each, and then create
an overview with a scale of 3,  the resulting single tile will end up as
171 pixels wide/tall.
The same issue appears on larger grids, but then only the tiles at the
right and bottom edge are affected.
When doing ST_Tile, there's an option to "padwithnodata" to prevent this
from happening, but this does not exist for ST_CreateOverview.


How can I ensure that overview tiles are always 256² pixels so I can use
them as a  tilelayer?


best regards
Senshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20170830/337c81cd/attachment.html>


More information about the postgis-users mailing list