Skip to content

Add styling for route_lines to staging versions of main and rail OHM styles #717

Closed

Description

@danrademacher

Related to #439, @Rub21 added a new transport_lines_relations layer to staging vector tiles only.

We'd like to add that to the staging stylesheet to see if it "just works" or if it might cause issues with duplicate labels or geometries.

In theory, the styling can be identical for transport_lines_relations and transport_lines.

One area where we might see some change is around San Jose https://www.openhistoricalmap.org/relation/2703515#map=11/37.2243/-121.8727&layers=O&date=1924-03-21&daterange=1824-01-01,2024-12-31

The railroad lines here have no names, but the Relations have names, so I'm curious to know if we'll start seeing labels once the relations come in

Activity

  1. vknoppkewetzel commented on Apr 9, 2024

    @vknoppkewetzel

    Is this the correct way for me to be pulling in `transport_line_relations" to add in to the demo style?
    image

    I am adding it in here:
    image

    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

  2. added a commit that references this issue on Apr 9, 2024
  3. 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
  4. vknoppkewetzel commented on Apr 12, 2024

    @vknoppkewetzel

    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 ✅

    Image

  5. moved this from TODO Soon to In Progress in OHM Cartoon Apr 12, 2024
  6. moved this from In Progress to Data/dev work required first in OHM Cartoon Apr 24, 2024
  7. Rub21 commented on Jun 30, 2024

    @Rub21
    Member

    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.

  8. 18 remaining items

  9. jeffreyameyer commented on Oct 30, 2025

    @jeffreyameyer
    Member

    @Rub21 - I don't think routes with route=railway are making it through to the route_lines layer. Please see:

    South Pacific Coast Railroad

    [fixed typo]

    but, no route line in the vtiles.

  10. moved this to TODO Soon in OHM Cartoon Oct 30, 2025
  11. 1ec5 commented on Oct 31, 2025

    @1ec5
    Member

    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.

  12. Rub21 commented on Oct 31, 2025

    @Rub21
    Member

    I see what's happening here, yes, definitely the object that Jeff mentioned does not show in the routes_lines layer.
    https://www.openhistoricalmap.org/relation/2749528

    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.

    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...

  13. jeffreyameyer commented on Nov 1, 2025

    @jeffreyameyer
    Member

    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.

  14. moved this from TODO Soon to In Progress in OHM Cartoon Nov 3, 2025
  15. 1ec5 commented on Dec 31, 2025

    @1ec5
    Member

    "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions