openmaptiles/layers
Brian Sperlongano 8b6e69e440
BUGFIX: Ignore duplicate route concurrencies (#1233)
While troubleshooting #1230, I discovered that there were cases where a way was a member of the same route relation more than once, such as: https://www.openstreetmap.org/way/17439235

<img src="https://user-images.githubusercontent.com/3254090/133726616-acd01332-343e-4930-ad3d-1fb3c3190a4c.png" width=280/>

This segment would end up showing duplicate highway shields in a rendered style, which is not desirable.  While I personally think this style of tagging is wrong, it's a relatively easy fix to remove those duplicates.  This PR replaces `ROW_NUMBER()` with `DENSE_RANK()` in the concurrency index generation code and adds a `DISTINCT` constraint on the concurrency join to handle multiple member rows with the same concurrency index.

Since I was in this file, I also fixed the copy/paste error in generating the route names.

Screenshot from database showing correct mapping:
![image](https://user-images.githubusercontent.com/3254090/133725554-1aa5dbbc-59a8-4674-a446-b92adb96c2a1.png)
2021-09-20 18:40:36 +02:00
..
aerodrome_label Update devdocs (#1223) 2021-09-11 15:56:10 -04:00
aeroway
boundary Change zoom level for NE states/provinces (#1184) 2021-08-23 11:49:19 +02:00
building
housenumber
landcover Remove landuse=park from landcover (#1208) 2021-09-20 10:23:26 +02:00
landuse Add support for cemetery tagged as grave_yard (#1175) 2021-08-18 09:09:51 +02:00
mountain_peak Removed useless NULLIF calls (#1214) 2021-09-20 11:19:24 +02:00
park Implement park rendering at z4-5 (#1160) 2021-09-01 07:20:52 +02:00
place
poi Removed useless NULLIF calls (#1214) 2021-09-20 11:19:24 +02:00
transportation BUGFIX: Ignore duplicate route concurrencies (#1233) 2021-09-20 18:40:36 +02:00
transportation_name BUGFIX: Ignore duplicate route concurrencies (#1233) 2021-09-20 18:40:36 +02:00
water Water layer river mapping bug fixes (#1182) 2021-09-01 08:24:01 +02:00
water_name Water layer river mapping bug fixes (#1182) 2021-09-01 08:24:01 +02:00
waterway Review index on osm_waterway_linestring on osm_important_waterway_linestring_gen_z* (#1130) 2021-07-09 09:35:46 +02:00