Skip to content

Distinguish maritime boundary segments in tiles #1296

Closed

Description

@1ec5

Some administrative and other boundaries include maritime segments over seas and oceans. In some cases, we represent this situation as one or more ways tagged maritime=yes that are members of the boundary relation. The vector tiles should annotate these linestring features with a maritime attribute. Coverage of this tag is far from comprehensive and can be tricky to get right in areas with changing coastlines. We may want to automatically determine whether a boundary segment is maritime, as OpenMapTiles does, by testing whether it intersects a landmass area from the osm provider.

OpenHistoricalMap/ohm-deploy@c037a69 would’ve implemented this property, but we backed away from that change because it would’ve resulted in redundancy along common boundary segments. As of OpenHistoricalMap/ohm-deploy#494, we coalesce common boundary segments, making these properties more feasible.

Activity

  1. added theissue type on Mar 1, 2026
  2. CharliePlett commented on Mar 1, 2026

    @CharliePlett

    On the other hand if you don't use the maritime=yes tag then no one will map the tags.

  3. 1ec5 commented on Mar 1, 2026

    @1ec5
    MemberAuthor

    Right, in principle it might not be necessary to map maritime=yes explicitly, if we can figure out how to derive that information from a join with the coastline. But that gets into the whole messy situation of how to model the coastlines in OHM…

  4. Rub21 commented on Mar 9, 2026

    @Rub21
    Member

    I think there shouldn't be a problem adding the maritime=yes attribute to the admin lines ohm-> land_ohm_lines However, there is already a dedicated layer in ohm-> and_ohm_maritime — that contains these maritime lines, derived from the boundary relations and ways #744 . If it's necessary for maritime=yes to live directly in land_ohm_lines as well, I could refactor and add it there.

    What do you all think?

  5. 1ec5 commented on Mar 10, 2026

    @1ec5
    MemberAuthor

    What I’m seeing is that maritime boundary ways are effectively duplicated between both layers. A stylesheet can’t really use the maritime layer, except to sort of paper over the main layer with a big blue line and hope no one notices what’s underneath it. We could remove the maritime segments from the main layer, as suggested in #744 (comment), but stylesheets that want to render maritime boundaries would need to juggle multiple layers. I’d favor combining them into a single layer and using an attribute to distinguish between maritime and overland segments. We’d have to take a similar approach for indefinite boundary segments anyways: #1245.

  6. pinned and unpinned a comment on Mar 10, 2026
  7. Rub21 commented on Mar 10, 2026

    @Rub21
    Member

    I have added the maritime=yes in the land_ohm_lines layer in staging: https://vtiles.ohmstaging.org/#7.78/46.329/-51.984

    Image Image

    for now, i think is god to keep land_ohm_maritime until stiles changes to the new maritime=yes attribute. later we can remove it.

  8. 1ec5 commented on Mar 24, 2026

    @1ec5
    MemberAuthor

    I’m not seeing the maritime property in production:

    Feature 201809633
  9. reopened this on Mar 24, 2026
  10. moved this from In Production to In Progress in OpenHistoricalMap Dev Planningon Mar 24, 2026
  11. Rub21 commented on Mar 24, 2026

    @Rub21
    Member

    Actually all the maritime tags are db, but I forgot update the tiler server docker images, so i did here, OpenHistoricalMap/ohm-deploy#730 now it displays the tag.

    Image
  12. moved this from In Progress to In Production in OpenHistoricalMap Dev Planningon Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions