<div dir="ltr">I use TileStache for my tile layers (<a href="http://tilestache.org/doc/">http://tilestache.org/doc/</a>), all data stored in PostGIS. While my tiles are raster images rendered with Mapnik, TileStache also now has Vector support, which might meet your needs: (<a href="http://tilestache.org/doc/TileStache.Vector.html">http://tilestache.org/doc/TileStache.Vector.html</a>).<br><br>TileStache is very simple and lightweight and needs very little in the way of infrastructure outside of Python, a few package requirements, and a WSGI-compatible Web server.<div><br></div><div>-B</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 8:59 AM, Peter Devoy <span dir="ltr"><<a href="mailto:peter@3xe.co.uk" target="_blank">peter@3xe.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Has anyone here tried using Postgres as the caching layer in a vector tile<br>
server?<br>
<br>
I need to set up a tile server and what I am thinking is have PostGIS cut up<br>
geometries into GeoJSON vector tiles as requests come in and cache the JSON for<br>
said requests in some other Postgres table(s) using a JSON/JSONB column. Then<br>
just have a cron job or something set up to prune the cache table so that the<br>
least frequently accessed tiles get removed.<br>
<br>
I know there are existing vector tile server solutions but I would like to be<br>
serving tiles in British National Grid rather than web mercator so they would<br>
all need some hacking.  I also have reservations about their architecture --<br>
I would rather not complicate my stack if Postgres can handle it.<br>
<br>
Is it a dumb endeavour?<br>
<br>
Kind regards<br>
<br>
<br>
Peter<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br></div>