<div dir="ltr">Hey Peter - no dumb endeavors only dumb implementations :)?  Don't know if my implementation is dumb or not but I am currently using Drupal to generate GeoJSON vectors.  Since Drupal has caching in it's core I am relying on it to provide this which it seems to do OK (up to about 500 points it performs acceptably, large polygons obviously pose greater challenges).<div><br></div><div>The dumb part of this stack is that the "tiling" part of the module that serves up the vectors is not tiled at all, rather, it relies on BBOX containment, so it is not a very efficient cache.  I am currently setting out the steps for modifying the module in question (View GeoJSON) to respond to Vector tile requests.  If you are at all interested in this solution, below are some links to the proposed tiling schema and the modules that form the basis for the approach.</div><div><br></div><div>Vector Tiling in Drupal/Views GeoJSON: <a href="https://www.drupal.org/node/2690877">https://www.drupal.org/node/2690877</a></div><div>Drupal GeoField: <a href="https://www.drupal.org/project/geofield">https://www.drupal.org/project/geofield</a></div><div>Geofield PostGIS sub-module: <a href="https://www.drupal.org/project/geofield_postgis">https://www.drupal.org/project/geofield_postgis</a></div><div><br></div><div>Regards,</div><div>robert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 11: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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">--<br>Robert W. Burgholzer<br> 'Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity.'  - Charles Mingus<div>Athletics: <a href="http://athleticalgorithm.wordpress.com/" target="_blank">http://athleticalgorithm.wordpress.com/</a> <br></div><div>Science: <a href="http://robertwb.wordpress.com/" target="_blank">http://robertwb.wordpress.com/</a></div><div>Wine: <a href="http://reesvineyard.wordpress.com/" target="_blank">http://reesvineyard.wordpress.com/</a></div></div></div>
</div>