openmaptiles/layers/transportation_name
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
..
README.md Adjust zoom levels of transportation_name, update diagrams 2017-03-15 13:53:09 +01:00
etl_diagram.png Implement shipway labels (#1179) 2021-08-23 10:52:15 +02:00
highway_classification.sql Add new layer to serve highway=motorway_junction nodes (#1119) 2021-06-28 14:35:27 +02:00
mapping_diagram.png Suppress service roads at certain zooms (#1192) 2021-09-01 09:18:45 +02:00
transportation_name.sql Implement shipway labels (#1179) 2021-08-23 10:52:15 +02:00
transportation_name.yaml Add network to transport layer (#1158) 2021-08-04 10:10:16 +02:00
update_transportation_name.sql BUGFIX: Route concurrency data is wiped after route member updates (#1239) 2021-09-21 12:56:25 +02:00

README.md

transportation_name

Docs

Read the layer documentation at http://openmaptiles.org/schema#transportation_name

Mapping Diagram

Mapping diagram for transportation_name

ETL diagram

ETL diagram for transportation_name