02JanDal / osm-bjk

BästaJävlaKartan is a tool that compares OpenStreetMap data against various open data sources from Sweden, and reports and deviations it finds.
https://osm-bjk.jandal.se/
MIT License
3 stars 1 forks source link

pg_tileserv sometimes picks the wrong geometry column #44

Open Prillan opened 5 months ago

Prillan commented 5 months ago

Well, pg_tileserv only supports a single geometry column per table, so sometimes (at least for me), the api.deviation tiles show suggested_geom instead of center. It's a mess to get it to use the correct one (and I haven't figured out what causes it to switch).

I guess a simple view would work, but I'm not sure whether the fronted uses the suggested geometry directly from the tile layer or not.