makina-maps icon indicating copy to clipboard operation
makina-maps copied to clipboard

Replace PostServe with other TileServer like Tegola/T-Rex

Open boldtrn opened this issue 3 years ago • 4 comments

Related to #1

Have you thought about using other tile servers like Tegola or T-Rex? I am wondering if this could improve the tile generation performance?

boldtrn avatar Oct 15 '20 08:10 boldtrn

Only Postserv and Postile have a tm2source support. Other tile servers require the generation of layer configuration in there own format.

https://medium.com/@frederic.rodrigo/web-mapping-comparing-vector-tile-servers-from-postgres-postgis-405055e69084

Postile will be faster than Postserv (MVT not constructed in the same way). But Postserv is on going improvement on OpenMapTiles.

For now the database version is still on default postgres 9 from OpenMapTilles setting. Can be switched to newer version with interesting performance improvement.

frodrigo avatar Oct 15 '20 09:10 frodrigo

Thanks for the fast reply. The missing tm2 support is definitely an issue and makes it more complicated to work with. For example T-Rex has a sample configuration for OMT - https://github.com/t-rex-tileserver/t-rex/blob/master/examples/openmaptiles.toml

Also there is a sample for Tegola here: https://github.com/go-spatial/tegola-osm/issues/50#issuecomment-703958964

I haven't tested it yet, so I don't kow how well this would work. IMHO this would be very interesting.

boldtrn avatar Oct 15 '20 12:10 boldtrn

The configuration should be generated (by openmaptiles-tools) since the layer definition changes over the time and there the new idea to have plugin layers.

frodrigo avatar Oct 15 '20 12:10 frodrigo

Yes you are right, that would be indeed a lot better. So do you propose we should improve postserve?

Or would it be better to add tm2 support to an existing tile server like tegola or martin?

boldtrn avatar Oct 15 '20 12:10 boldtrn