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
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.
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.
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+
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.
Meanwhile, Sajjad will talk to the Tegola team about how we can cut holes at tile creation, since others must have confronted this problem.
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.
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.
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:
We'll need to define some constraints on how date ranges (especially start of time) is defined
We may need to adjust our tag guidelines to explain how coastlines are generated
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
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:
constraints - sure!
adjusting tagging - of course
processing for ensuring continuity... sounds good, but we'd need to discuss with examples, no?
@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.
Building on the last comment in this issue, we have a refined new proposal:
We export current natural=coastline from OHM database
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
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.
We import Ice Age ocean as natural=coastline
We import the new coastal natural=water with maybe a default start_date of -20000 (time of last Glacial Maximum).
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
Activity
geohacker commentedon Jun 17, 2020
tsinn commentedon Jun 17, 2020
danrademacher commentedon Jun 17, 2020
jeffreyameyer commentedon Jun 17, 2020
jeffreyameyer commentedon Jun 17, 2020
jeffreyameyer commentedon Jun 17, 2020
fyi - I have added some sample use cases to the ever-expanding testbed. : )

jeffreyameyer commentedon Jul 16, 2020
danrademacher commentedon Jul 16, 2020
danrademacher commentedon Aug 4, 2020
We're aiming for Option 3 in above comment!
@geohacker is going to read up on this and talk to the person who wrote the OSM coastline pipeline
geohacker commentedon Aug 18, 2020
I started looking at this a bit more. The above is a bit of a hack to get
coastlinesto show up on top ofwater_areas, though like @tsinn said this may not work across the board, but I think this approach of markingcoastlinesas 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.
danrademacher commentedon Aug 18, 2020
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

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

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+
4 remaining items
danrademacher commentedon Sep 1, 2020
Two tracks:
On style, we focus on having users tag all islands as
place=islandand 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.Meanwhile, Sajjad will talk to the Tegola team about how we can cut holes at tile creation, since others must have confronted this problem.
geohacker commentedon Nov 2, 2021
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.
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.
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:
jeffreyameyer commentedon Nov 2, 2021
@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:
[-]Can we get wetland support (or islands?) in stylesheets?[/-][+]Dealing with coastlines[/+]geohacker commentedon Nov 8, 2021
@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.
danrademacher commentedon Jan 25, 2022
I failed to capture here our notes from 30 Nov 2021 when we discussed another potential approach:
And then we discussed this possible way forward:
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
Outcomes:
@geohacker when you are back online, take a look at these notes and see if they still seem viable as a path forward
danrademacher commentedon Feb 8, 2022
Building on the last comment in this issue, we have a refined new proposal:
natural=coastlinefrom OHM databasenatural=coastline. This is drastic and should go along with careful testing on staging and full community input.natural=coastlinenatural=waterwith maybe a default start_date of-20000(time of last Glacial Maximum).Somewhere in 5 we probably also need to break apart the shapes in the coastal
natural=coastlineinto smaller pieces to avoid having a single polygon that’s a ring around a whole continent or most of a continentdanrademacher commentedon Feb 9, 2022
Splitting this out into a new issue. Underlying challenges here from the original islands concerns seem to be resolved