Skip to content

Dealing with coastlines #91

Closed
Closed

Description

@jeffreyameyer

What's your idea for a cool feature that would help you use OHM better.
It would be great to be able to render islands and / or wetlands more reliably in OHM.

This is important b/c many coasts / shores are full of marshes before they get built up with seawalls, etc.

Perhaps I'm missing something, but it's not clear what's up.

Current workarounds
None that I can figure out:

Additional info
OHM: https://www.openhistoricalmap.org/way/198314785#map=16/47.5644/-122.3383&layers=OD
image

OSM:https://www.openstreetmap.org/way/116923338#map=16/37.9331/-122.5089&layers=D
image

OSM: https://www.openstreetmap.org/way/318323319#map=18/37.92417/-122.50433&layers=D
image

Activity

  1. geohacker commented on Jun 17, 2020

    @geohacker
  2. tsinn commented on Jun 17, 2020

    @tsinn
  3. danrademacher commented on Jun 17, 2020

    @danrademacher
  4. jeffreyameyer commented on Jun 17, 2020

    @jeffreyameyer
    Author
  5. jeffreyameyer commented on Jun 17, 2020

    @jeffreyameyer
    Author
  6. jeffreyameyer commented on Jun 17, 2020

    @jeffreyameyer
    MemberAuthor

    fyi - I have added some sample use cases to the ever-expanding testbed. : )
    image

  7. jeffreyameyer commented on Jul 16, 2020

    @jeffreyameyer
    Author
  8. danrademacher commented on Jul 16, 2020

    @danrademacher
  9. danrademacher commented on Aug 4, 2020

    @danrademacher

    We're aiming for Option 3 in above comment!

    1. Some other solution that smarter people have to solve this problem

    @geohacker is going to read up on this and talk to the person who wrote the OSM coastline pipeline

  10. geohacker commented on Aug 18, 2020

    @geohacker

    image

    image

    I started looking at this a bit more. The above is a bit of a hack to get coastlines to show up on top of water_areas, though like @tsinn said this may not work across the board, but I think this approach of marking coastlines as land might get us pretty close.

    Using osmcoastlines is the other approach and I think that might definitely be the most accurate. We would prepare water polygons with start_date and end_date attributes and serve them in the vector tiles. These can be overlayed on top of a land background. I've reached out to Jochen who maintains the osmcoastlines to see if he has any advice for us.

  11. danrademacher commented on Aug 18, 2020

    @danrademacher

    Discussion with Sajjad and Jeff, focus on z9+ as shown in Leaflet, but z7-8 on vtiles:

    https://vtiles.openhistoricalmap.org/#7.59/41.812/-71.148
    image

    https://vtiles.openhistoricalmap.org/#8.59/41.8117/-71.1478
    image

    Sajjad has some recommendations for how we can solve this with vector style changes only -- classifying wetlands, islands, and other "floating pieces of land" as a special layer z7+

  12. 4 remaining items

  13. danrademacher commented on Sep 1, 2020

    @danrademacher

    Two tracks:

    1. On style, we focus on having users tag all islands as place=island and then @tsinn could pull that out in our style as a separate layer on top of water areas, though we know this will solve only first order islands. But this is a major use case for coastal cities that fill in areas and make more land over time.

    2. Meanwhile, Sajjad will talk to the Tegola team about how we can cut holes at tile creation, since others must have confronted this problem.

  14. geohacker commented on Nov 2, 2021

    @geohacker

    We have two proposal to achieve this for OHM. Both require a certain level of investment and some criteria in terms of what's possible and what's not.

    1. Create coastline polygons on the fly in Tegola

    This is probably the easiest to experiment and come out with some results. We would create a new tile layer in Tegola that queries all coastline polygons and then prepare a single multipolygon with rings for as many nesting of land/water. This would be done entirely in postgis to generate a single polygon. We will have to figure out how to use date ranges so we can produce a continuous polygon. The tile layer will then be served to the frontend. The frontend would use this as the water layer on top of land background.

    1. Prepare OHM coastlines periodically

    The long but probably most reliable approach is following OSMs footsteps and using the OSM coastline software but heavily modified for OHM. This would read a PBF and then produce multiple shapefiles for predefined date ranges. These shapefiles then will be served as vector tiles. The frontend would then apply this as a land layer.
    The ohm coastlines approach requires building new infrastructure and maintenance. We would probably need to hire/consult folks from the OSM coastlines project to make sure we can achieve this.

    Both approaches makes some assumptions:

    1. We'll need to define some constraints on how date ranges (especially start of time) is defined
    2. We may need to adjust our tag guidelines to explain how coastlines are generated
    3. We may be heavily process polygons to make sure they are continuous and consistent so there'll be a small room for error in favour of visual cleanliness
  15. jeffreyameyer commented on Nov 2, 2021

    @jeffreyameyer
    MemberAuthor

    @geohacker - thanks for this update!

    My first reaction to (2) is that this won't support what most users will want, which is faster feedback on intense shoreline changes during a relatively short, punctuated timeframe (years-decades) over a fairly small area (city harbor, breakwaters, rivers draining, etc.) and that these periods will be distributed fairly evenly over post 1700 history around the world.

    Does that make sense?

    Then again, what sort of time interval did you have in mind for (2)? Centuries? e.g. maybe 100, 1600, 1700, 1800, 1900, 2000, etc.? And then, any changes in between shorelines is accomplished by "hacks" of water encroaching on land, etc.?

    For the assumptions:

    1. constraints - sure!
    2. adjusting tagging - of course
    3. processing for ensuring continuity... sounds good, but we'd need to discuss with examples, no?
  16. changed the title [-]Can we get wetland support (or islands?) in stylesheets?[/-] [+]Dealing with coastlines[/+] on Nov 3, 2021
  17. geohacker commented on Nov 8, 2021

    @geohacker

    @jeffreyameyer yeah 2 is not my favourite approach either and the issue you outline is true. I was thinking of a much more small intervals like ~ few months to a year (or even finer if we actually can). And yes this needs more specific examples and a proper test suite. We'll prioritise to create that before beginning any of this work.

  18. added
    infrastructure
    and removed on Jan 25, 2022
  19. danrademacher commented on Jan 25, 2022

    @danrademacher

    I failed to capture here our notes from 30 Nov 2021 when we discussed another potential approach:

    What if we were to say if you want to style major coastal changes around Manhattan -- make it so all the changes are inland water changes

    Make the “coastline” crude and then do all the edits as “inland waterways”

    image

    And then we discussed this possible way forward:

    • stand up OSM coastlines based on our Planet data
    • Start rendering vtiles for that
    • No new infrastructure
    • Jeff will write up proposal for the community

    Sajjad: Should we do a coastline cleanup campaign

    For lakes-layering

    • those things we would still handle on the layer front, with the ordering.

    • If that gets too complex, then we could cut those holes on the fly

    • we’re a ways from rendering that. And Mapbox does a very brute force approach of layering

      • Ideally, PostGIS would cut the hole for you and send you the lake with the hole cut into it
      • Sajjad wants to ask the Tegola folks

    Outcomes:

    • OHM community engagement on coastal cleanup
    • Stand up OSM coastlines for OHM
    • Wait on handling inland waterways layering for islands, etc

    @geohacker when you are back online, take a look at these notes and see if they still seem viable as a path forward

  20. danrademacher commented on Feb 8, 2022

    @danrademacher

    Building on the last comment in this issue, we have a refined new proposal:

    1. We export current natural=coastline from OHM database
    2. Tim has defined Ice Age sea level. He uses that plus OHM coastline to make the new natural=water shapes for coastal waters. Not this could also be a simple buffer from modern coastlines, but it seems maybe a bit more logically defensible to use a baseline coastline that actually existed at one point in (pre)history
      image
    3. We blow away current OHM data that is natural=coastline. This is drastic and should go along with careful testing on staging and full community input.
    4. We import Ice Age ocean as natural=coastline
    5. We import the new coastal natural=water with maybe a default start_date of -20000 (time of last Glacial Maximum).
    6. Then we let the community loose on editing those new coastal edgewaters to map the history of coastal fill/change

    Somewhere in 5 we probably also need to break apart the shapes in the coastal natural=coastline into smaller pieces to avoid having a single polygon that’s a ring around a whole continent or most of a continent

  21. danrademacher commented on Feb 9, 2022

    @danrademacher

    Splitting this out into a new issue. Underlying challenges here from the original islands concerns seem to be resolved

  22. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infrastructure

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions