mirror of
https://github.com/openmaptiles/openmaptiles.git
synced 2025-12-08 18:02:18 +00:00
This PR is a bugfix for the `transportation_name` layer. Currently, the updates process does not work, as noted by @zstadler in #1230. The issue is that the computed `concurrency_index` column in `osm_route_member` is never updated after the initial updates. Therefore, whenever route member ways are updated, they will lose their route concurrency index, and hence route concurrencies will be lost in the `transportation_name` tiles. This PR adds the missing concurrency index update code to the transportation/network update triggers. This PR as written also incorporates the fixes in #1230 and #1233. The following SQL is a unit test to demonstrate that these triggers work correctly: ``` select count(*) from osm_route_member where concurrency_index > 5; select count(*) from osm_transportation_name_network where route_6 is not null; update osm_route_member set concurrency_index=NULL where concurrency_index > 5; select count(*) from osm_route_member where concurrency_index > 5; select count(*) from osm_transportation_name_network where route_6 is not null; ``` If working correctly, both pairs of `count(*)` values should return the same pair of numbers.