You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add styling for route_lines to staging versions of main and rail OHM styles #717
Is this the correct way for me to be pulling in `transport_line_relations" to add in to the demo style?
I am adding it in here:
And can in to the main's demo style, although I do not see anything in inspect - so possibly I am missing something, or maybe just nothing in the spot I am looking at.
changed the title [-]Add styling for route_lines_relations to staging versions of main and ril OHM styles[/-][+]Add styling for route_lines_relations to staging versions of main and rail OHM styles[/+]on Apr 11, 2024
Ok confirming That I see it showing up in the demo style (ie ohm-tegola-draft), so next for me it to just, make these have same styling as transport_lines sounds like ✅
A route=railway relation isn’t exactly a public transportation route. It represents essentially the same thing as a multilinestring relation that has railway=* on it.
This object has the attributes route=railway and type=route. Currently, using imposm, all objects with route=* are loaded into the database, but the object does exist in the layer routes_lines because with the latest improvements in the ticket #1090 -- Vector tiles should join routes at concurrencies
we are now filtering and indexing only specific types of routes.
Of the common values of route=*, road would be the highest priority. The next priority would be public transportation routes: tram, bus, train, subway, light_rail, trolleybus. That can be tail work if it would add too much complexity.
Ok - I think what @1ec5 is saying is, "We shouldn't include route=railway relations in our route_lines layer because they aren't things we would typically style on a map." Is that right?
If so, let's close this ticket, as it covers both styling and the vtiles, and the vtile work appears to be done. We can ticket out the rest separately.
"We shouldn't include route=railway relations in our route_lines layer because they aren't things we would typically style on a map." Is that right?
Correct. Instead, we should merge these relations’ properties into the linestrings in transport_lines: #1248. I don’t think the Historical or Railway stylesheet would need to do anything special after that.
If so, let's close this ticket, as it covers both styling and the vtiles, and the vtile work appears to be done. We can ticket out the rest separately.
This ticket originally tracked integrating route labels into the main style, but the design explorations above demonstrate the importance of developing a more specialized public transportation style first before folding elements of it into the Historical style. #436 tracks making a public transportation style. Plotting and labeling routes is a critical step, but I think we can track it as part of the overall effort for now.
Activity
vknoppkewetzel commentedon Apr 9, 2024
Is this the correct way for me to be pulling in `transport_line_relations" to add in to the demo style?

I am adding it in here:

And can in to the main's demo style, although I do not see anything in
inspect- so possibly I am missing something, or maybe just nothing in the spot I am looking at.Update: added into demo style, pushed updates up
update "draft" style for demo
Rub21 commentedon Apr 9, 2024
@vknoppkewetzel , here some examples: 3 relations the use same ways as menbers,
Relation 1: from 1880 to 1925-03-31 -> https://www.openhistoricalmap.org/relation/2798921

Relation 2: from 1925-04-01 to 1930-09-12 -> https://www.openhistoricalmap.org/relation/2798919
Relation 3: from 1930-09-13 to 1955 -> https://www.openhistoricalmap.org/relation/2798922
https://vtiles.staging.openhistoricalmap.org/#13.19/38.86617/-90.16727
[-]Add styling for route_lines_relations to staging versions of main and ril OHM styles[/-][+]Add styling for route_lines_relations to staging versions of main and rail OHM styles[/+]vknoppkewetzel commentedon Apr 12, 2024
Ok confirming That I see it showing up in the demo style (ie ohm-tegola-draft), so next for me it to just, make these have same styling as
transport_linessounds like ✅Rub21 commentedon Jun 30, 2024
I have added the route_lines layer in staging, according to https://wiki.openstreetmap.org/wiki/Relation:route , here e.g https://vtiles.staging.openhistoricalmap.org/#10.15/70.0004/-42.1938
I have also fixed the issues about the SQL issues that was breaking the areas where relations have wrong date.
18 remaining items
jeffreyameyer commentedon Oct 30, 2025
@Rub21 - I don't think routes with
route=railwayare making it through to theroute_lineslayer. Please see:South Pacific Coast Railroad
[fixed typo]
but, no route line in the vtiles.
1ec5 commentedon Oct 31, 2025
A
route=railwayrelation isn’t exactly a public transportation route. It represents essentially the same thing as a multilinestring relation that hasrailway=*on it.Rub21 commentedon Oct 31, 2025
I see what's happening here, yes, definitely the object that Jeff mentioned does not show in the
routes_lineslayer.https://www.openhistoricalmap.org/relation/2749528
This object has the attributes
route=railwayandtype=route. Currently, using imposm, all objects with route=* are loaded into the database, but the object does exist in the layerroutes_linesbecause with the latest improvements in the ticket #1090 -- Vector tiles should join routes at concurrencieswe are now filtering and indexing only specific types of routes.
According to Minh’s comment OpenHistoricalMap/ohm-deploy#600 (comment)
Of the common values of route=*, road would be the highest priority. The next priority would be public transportation routes: tram, bus, train, subway, light_rail, trolleybus. That can be tail work if it would add too much complexity.
We can see this filtering logic here:
https://github.com/OpenHistoricalMap/ohm-deploy/blob/main/images/tiler-imposm/queries/ohm_mviews/routes_02_indexed.sql#L99-L409
According to the documentation, there are many routes that we are not considering in the layer, only the most popular ones. https://wiki.openstreetmap.org/wiki/Key:route?uselang=en
Do you want me to add all the categories, indexing them? In this case, it would be something like
route_route_1_ref,route_route_1_network...jeffreyameyer commentedon Nov 1, 2025
Ok - I think what @1ec5 is saying is, "We shouldn't include
route=railwayrelations in ourroute_lineslayer because they aren't things we would typically style on a map." Is that right?If so, let's close this ticket, as it covers both styling and the vtiles, and the vtile work appears to be done. We can ticket out the rest separately.
1ec5 commentedon Dec 31, 2025
Correct. Instead, we should merge these relations’ properties into the linestrings in
transport_lines: #1248. I don’t think the Historical or Railway stylesheet would need to do anything special after that.This ticket originally tracked integrating route labels into the main style, but the design explorations above demonstrate the importance of developing a more specialized public transportation style first before folding elements of it into the Historical style. #436 tracks making a public transportation style. Plotting and labeling routes is a critical step, but I think we can track it as part of the overall effort for now.