kopia lustrzana https://github.com/openmaptiles/openmaptiles
![]() 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:  |
||
---|---|---|
.. | ||
aerodrome_label | ||
aeroway | ||
boundary | ||
building | ||
housenumber | ||
landcover | ||
landuse | ||
mountain_peak | ||
park | ||
place | ||
poi | ||
transportation | ||
transportation_name | ||
water | ||
water_name | ||
waterway |