openmaptiles/layers
Brian Sperlongano 88389f2a2c
BUGFIX: Route concurrency data is wiped after route member updates (#1239)
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.
2021-09-21 12:56:25 +02:00
..
aerodrome_label
aeroway
boundary
building
housenumber
landcover
landuse
mountain_peak Removed useless NULLIF calls (#1214) 2021-09-20 11:19:24 +02:00
park
place
poi Removed useless NULLIF calls (#1214) 2021-09-20 11:19:24 +02:00
transportation BUGFIX: Route concurrency data is wiped after route member updates (#1239) 2021-09-21 12:56:25 +02:00
transportation_name BUGFIX: Route concurrency data is wiped after route member updates (#1239) 2021-09-21 12:56:25 +02:00
water
water_name
waterway