Skip to content

transport_lines simplification is too aggressive #1244

Closed

Description

@Bauer33333

Sometime the last days the map has started to look very crude. It is displaying way less nodes than what is needed for curves to look smooth, simplifing them too much in the vector tiles, so there are now jagged corners everywhere.
This is most noticable on ORM:

Image

https://openrailwaymap.app/#view=8.68/48.604/8.3137&date=1969

This is not caused by low level tiles being overzoomed. As you can see in the video it actively simplifies too much while zooming out, too:
https://github.com/user-attachments/assets/2ebc1685-d41a-49cd-82a7-49ccd4313d83
https://www.openhistoricalmap.org/#map=15/49.06200/9.21311&layers=O&date=1925-12-24&daterange=1825-01-01,2025-12-31

Browser console output:
Image

Activity

  1. 1ec5 commented on Jan 3, 2026

    @1ec5
    Member

    The simplification is coming from the server side, baked into the tiles.

    Layer Schwarzwaldbahn
    transport_lines transport_lines
    route_lines route_lines
    transport_lines + route_lines transport_lines + route_lines

    At z10, we perform Douglas–Peucker simplification (ST_Simplify) on transport_lines with a tolerance of 100 but on route_lines with a tolerance of only 20:

    https://github.com/OpenHistoricalMap/ohm-deploy/blob/ebb10a25f8265cc02b9a0cb9559ac98e907e6393/images/tiler-imposm/queries/ohm_mviews/transport_lines.sql#L172
    https://github.com/OpenHistoricalMap/ohm-deploy/blob/ebb10a25f8265cc02b9a0cb9559ac98e907e6393/images/tiler-imposm/queries/ohm_mviews/routes_03_mv.sql#L398

    The simplification on transport_lines should probably be less aggressive, since tight curves of this sort are not uncommon.

  2. added theissue type on Jan 3, 2026
  3. changed the title [-]map is noticably low poly[/-] [+]`transport_lines` simplification is too aggressive[/+] on Jan 3, 2026
  4. self-assigned this
    on Jan 3, 2026
  5. Rub21 commented on Jan 3, 2026

    @Rub21
    Member

    I am going to check this and fix it.

  6. Rub21 commented on Jan 9, 2026

    @Rub21
    Member

    I’ve improved the aggressive simplification. Here’s a comparison between the current production version and staging, showing the changes.

    https://tiler-compare.openhistoricalmap.org/vtiles_map_style/index.html?prod=vtiles_style&staging=vtiles_style#11.03/49.0699/9.2322

    Screen.Recording.2026-01-09.at.1.04.52.PM.mov
  7. Rub21 commented on Jan 12, 2026

    @Rub21
    Member

    fixed!

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions