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
Distinguish maritime boundary segments in tiles #1296
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.
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…
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 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.
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.
Activity
CharliePlett commentedon Mar 1, 2026
On the other hand if you don't use the maritime=yes tag then no one will map the tags.
1ec5 commentedon Mar 1, 2026
Right, in principle it might not be necessary to map
maritime=yesexplicitly, 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…Rub21 commentedon Mar 9, 2026
I think there shouldn't be a problem adding the
maritime=yesattribute to the admin linesohm-> land_ohm_linesHowever, there is already a dedicated layer inohm-> 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?
1ec5 commentedon Mar 10, 2026
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.
Rub21 commentedon Mar 10, 2026
I have added the maritime=yes in the
land_ohm_lineslayer in staging: https://vtiles.ohmstaging.org/#7.78/46.329/-51.984for now, i think is god to keep land_ohm_maritime until stiles changes to the new
maritime=yesattribute. later we can remove it.1ec5 commentedon Mar 24, 2026
I’m not seeing the
maritimeproperty in production:Rub21 commentedon Mar 24, 2026
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.