Hacker News new | ask | show | jobs
by twelvechairs 18 days ago
The mature best practice in the geospatial industry is a postgis server with R-tree based indexing of every item in space. Its pretty trivial to serve this as dynamic vector tiles (e.g. 'martin') including at different scales/zooms.

Few people store data on a server as tiles though it might be served as tiles. Aside from the added storage size, you dont want to have to update 20 levels tiles every time one piece of data is added or removed.

1 comments

I think OpenFreeMap and Protomaps shift the complexity from serving tiles to building tiles: the former approach requires a Postgres + PostGIS + Martin + a reverse proxy whereas the latter approach requires nothing but a web server (arguably OpenFreeMap requires a bit more than that, since it uses BTRFS images).

If you are optimising for cost and read-traffic, such as OpenFreeMap, shifting that complexity to a preparation step makes a lot of sense.

Yes and no. Agree openfreemap and protomaps have complexity in their tile building systems which they have to build and maintain, but dont think the postgis approach has difficulty serving them at all - its pretty trivial and low code even if a few systems.

I just think the postgis approach works better at both ends of the scale. For large users its a mature, well maintained (by others) and heavily optimised (again by others) system. For small users the benefit of not having to worry about rebuilding individual tiles especially when data updates is a no brainer.

Openfreemap probably has the use case where its pretty close to comparable (set up for osm data so global, large data, very clear use case and feature set to design for, you can update via cadence, enough of a user base to support development, the sell of it all being "one package" is positive for some users, etc.). Whenever i see protomaps, versatiles, tilemaker, maptiler etc. Ive never seen a major use case I can buy into them for.