bigdatapostgismapnikcartodbvector-tiles

Is there a good way to display map tiles dynamic and real time?


Ⅰ using python-mapnik(linux)+postgis

I've tried using mapnik to show big data(aboult more than 600,0000 polygon features with much points in postgis),I display it real time from python service without cache. but i meet the problem: 1.At the beginning,load table from database lost much time 2.when I zoom to 12level,map tile will loading slowly

Ⅱ using python(flask)+postgis(MVT)+mapbox-gl

1.display 100,0000 features(simple polygon) so fast,but display big data(aboult more than 600,0000 polygon features with much points in postgis),i find selet query need much time. it's slowly than mapnik

Now I don't know how to complete my research about displaying big vector tiles fast and realtime!!

Is there a persion like me who are interested in quickly displaying data??Any help or suggestion would be appreciated! At last ,forgive my poor English descrption.

some information about vector tiles I've found,maybe is useful to somebody like me:


Solution

  • You may want to reduce as much as possible the amount of data being transferred from your database to your rendering engine.

    This blog post from CARTO may give you some ideas even it's focused in point data.

    For polygon datasets, in order to reduce the amount of data moved to the renderer you may want to create simplified versions to use based on the zoom level. Mapshaper is a nice tool to simplify polygons but still retain their topology. And in any case, always combine ST_RemoveRepeatedPoints with ST_SnapToGrid to be sure you are not wasting rendering CPU with wasted pixels.