Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Render natural=water (lakes, lagoons) differently when tagged salt=yes. #3901

Closed
wants to merge 2 commits into from

Conversation

StyXman
Copy link
Contributor

@StyXman StyXman commented Sep 24, 2019

Fixes #3893

Changes proposed in this pull request:
Render salt water areas in old pink color. This does not include salt ponds (might come soon), and does not include seas/oceans.

Test rendering with links to the example places:

https://www.openstreetmap.org/#map=13/37.9948/-0.7054

Before
Screenshot_20190924_145328

After
Screenshot_20190924_145031

I just noticed that this pink is close to mud and industrial zone, so most probably will need some changes, bu the basics are in.

Also nevermind that my render does not show sea/ocean, I have a bug with kosmtik.

@kocio-pl
Copy link
Collaborator

For me it's too far from the water color. Maybe some pattern on it would work better. However it's interesting if there's a way to make uniform rendering for all the salty waters.

@ghost
Copy link

ghost commented Sep 24, 2019

In my opinion white dots would fit well
Maybe basically the style of wetlands inverted

  1. Salt is also white
  2. Also used in other maps
  3. Simple

@StyXman
Copy link
Contributor Author

StyXman commented Sep 24, 2019

I agree, but for instance the Laguna de la Mata besides just north east seems to also be salty (just not tagged so right now, I added a note), which already has a pattern for the marsh. I don't know if they will play well together.

@StyXman
Copy link
Contributor Author

StyXman commented Sep 24, 2019

To be fair, given that this lagoon has paths on it and wetlands in the coast, I guess it also has wetlands inside.

@StyXman
Copy link
Contributor Author

StyXman commented Sep 24, 2019

This kinda fixes #545 because salt_ponds are sometimes also tagged as salt=yes.

https://www.openstreetmap.org/way/534624892

@ghost
Copy link

ghost commented Sep 24, 2019

I guess it might be simplest to just not render the salt tag if there is the wetland tag I'd say inthe case you just pointed out the wetland tag is more important

@StyXman
Copy link
Contributor Author

StyXman commented Sep 24, 2019

And then we have this render from the wiki page:

https://wiki.openstreetmap.org/wiki/Tag:wetland%3Dsaltmarsh

@ghost
Copy link

ghost commented Sep 24, 2019

oh I didn't know that part of the tagging
In this case there shouldn't be a problem
saltmarsh should then obviously be preffered to marsh and salt

@StyXman
Copy link
Contributor Author

StyXman commented Sep 24, 2019

Salt marshes:

https://www.openstreetmap.org/relation/9646555#map=15/36.4278/-6.2188

Maybe then yes, the white dots.

@jeisenbe
Copy link
Collaborator

I agree with adding a lighter pattern of dots for lakes with salt=yes. You can try reusing the pattern from saltmarshes.

Alternatively, you can try the patterns from the alt-colors style:

https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/symbols/patterns/water_salt.png)

https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/symbols/patterns/water_intermittent_salt.png

But salt lakes should still be a shade of blue like other water areas.

(BTW, I was thinking of something like this for oceans: lighter blue for oceans vs lakes (and darker blue for rivers on the right. But this does not have to be changed in this PR)

Imagico-water

@StyXman
Copy link
Contributor Author

StyXman commented Sep 25, 2019

New render:

Screenshot_20190925_122108

@jeisenbe
Copy link
Collaborator

jeisenbe commented Sep 25, 2019

Thanks for the new test rendering.
I designed that salt-dots-2.png pattern for use with salt marshes, which have a lighter green color, so it looks a little strong on the blue water color. Could you try using a little opacity?

Or perhaps test https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/symbols/patterns/water_salt.png instead?

Ideally there should also be a rendering for water areas with salt=yes + intermittent=yes (but that could be done later, if you don't want to include it in this PR)

@StyXman
Copy link
Contributor Author

StyXman commented Sep 25, 2019

Pattern op 0.4, 0.6 and 0.8:

salt-pattern-op-0 4-13-1044467-808970
salt-pattern-op-0 6-13-1044467-808970
salt-pattern-op-0 8-13-1044467-808970

@kocio-pl
Copy link
Collaborator

0.6 looks like the best for me, 0.4 is hard to be noticed on my screens. What about intermittent waters?

@StyXman
Copy link
Contributor Author

StyXman commented Sep 25, 2019

I can't do anything with intermittent because both use polygon pattern, unless I move the salt pattern to landcover-area-symbols?

@kocio-pl
Copy link
Collaborator

kocio-pl commented Sep 25, 2019

However it's interesting if there's a way to make uniform rendering for all the salty waters.

I guess making dots on the big areas like ocean is not nice, but we might start with average color from salty lakes (like "90% of blue + 10% of white" or whatever the average will be) and apply it as a new color. This way both would look as similar as possible.

@StyXman
Copy link
Contributor Author

StyXman commented Sep 25, 2019

lighter blue for oceans vs lakes, and darker blue for rivers

So lighter blue for all salt waters, oceans, seas, lakes, lagoons and salt marshes? It's something I could implement here too.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Sep 26, 2019 via email

@jeisenbe
Copy link
Collaborator

I can't do anything with intermittent because both use polygon pattern, unless I move the salt pattern to landcover-area-symbols?

You can also make a new .png file for salt + intermittent features, combining the blue horizontal stripes with the white dot pattern.

@StyXman
Copy link
Contributor Author

StyXman commented Oct 8, 2019

Given that the three color schema is so contentious, I will try @jeisenbe 's last suggestion.

@jeisenbe jeisenbe added new features Requests to render new features water labels Oct 10, 2019
@jeisenbe
Copy link
Collaborator

Once the new pattern is ready for intermittent + salt water, you can remove the "[WIP]" from the title, if it is ready for review.

@jeisenbe
Copy link
Collaborator

I've tested this rendering in a couple of places. The current pattern, with full opacity, is too strong compared to other patterns in this style:

Ramsar, Corsica:
z14 salt-dots-2 full opacity (current commit in this PR)
z14-ramsar-salt-dots

z12 salt-dots-2 full opacity
z12-ramsar-salt-dots

Here's how it would look with the alt-colors style, using a lighter ocean/salt water color and a much less prominent pattern:

z14 lighter ocean, alt-colors pattern
z14-ramsar-altcolors

z12 lighter ocean, alt-colors pattern
z12-ramsar-alt-colors

Of the test images shown above, the 60% opacity option is best, but I think it might be improved by using a higher density of dots and a less prominent pattern. Even better would be to pick a lighter salt water fill color, but that step could be done later.

Laguna de Torrevieja, 60% opacity of salt-dots-2.png (from above)
laguna-small-60percent

@jeisenbe
Copy link
Collaborator

You can also make a new .png file for salt + intermittent features, combining the blue horizontal stripes with the white dot pattern.

@StyXman do you have time to update the PR as planned, to include a salt water pattern for intermittent water areas?

@StyXman
Copy link
Contributor Author

StyXman commented Nov 17, 2019

Hi @jeisenbe. I know I have 3 PRs open, they're in the top of my TODO list, but life has consumed a little more of my free time, so if anybody wants to take over I have no issue with that. It's a shame that we don't work with feature branches à la nvie, which would make taking over more easily.

@Adamant36 Adamant36 mentioned this pull request Nov 17, 2019
@StyXman
Copy link
Contributor Author

StyXman commented Nov 17, 2019

Also, in the particular case of this PR, the discussion branched a little bit, even to other tickets, so I wanted for the dust to settle down a bit. It's sometimes exhausting to propose a change and many improvements and changes pop up. I'm not sure how we should handle those, maybe again the nvie branching model would help by allowing whoever wants to suggest a change just grab the code and try it themselves.

@jeisenbe
Copy link
Collaborator

There is no rush for this, feel free to work on it whenever you have the time.

Thank you for the link about the Nvie model. It appears that our development model is similar, because we also have feature branches: in this case StyXman:3893. As mentioned at the link "Feature branches typically exist in developer repos only, not in origin."

If anyone wants to copy the code in the StyXman:3893, open up your command line and type:

git remote add StyXman https://github.com/StyXman/openstreetmap-carto.git

then

git fetch Styxman 3893

then you can check out the branch:

git checkout Styxman/3893

@jeisenbe
Copy link
Collaborator

It's sometimes exhausting to propose a change and many improvements and changes pop up

I'm sorry about that. Since this style is complicated and many features are related it can be hard to make a single change without affecting something else.

In this PR it looks like we already have consensus on using some sort of pattern of lighter dots to show salt water, so it should be possible to get this PR accepted.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Jan 9, 2020

@StyXman do you have any time to update this PR now?

@StyXman
Copy link
Contributor Author

StyXman commented Jan 9, 2020

@jeisenbe not really, sorry. If someone else wants to pick it up...

@pnorman
Copy link
Collaborator

pnorman commented Feb 6, 2020

Closing as stale

@pnorman pnorman closed this Feb 6, 2020
@jeisenbe
Copy link
Collaborator

jeisenbe commented Mar 9, 2020

You can also make a new .png file for salt + intermittent features, combining the blue horizontal stripes with the white dot pattern.

I tried this, and it doesn't work. The salt dots are not visible with the strong horizontal lines.

This is a good reason to reconsider the current intermittent water pattern.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Mar 9, 2020

Example before:
https://www.openstreetmap.org/#map=15/43.3847/4.7884
france-salt-ponds-intermittent-etc-before-15:43 3847:4 7884 png

With dots added for salt=yes + intermittent=yes:
dots-and-stripes-test-france-salt-ponds-intermittent--15:43 3847:4 7884

With new dots pattern for salt + intermittent:
france-salt-ponds-intermittent-etc-after-15:43 3847:4 7884

It would be best to change the horizontal stripes so they are not soo different.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Mar 9, 2020

Here's one more try, with subtler dots:
salt-dots-plus-intermittent-lines-test

Horizontal stripes do not play well with random dots.

Compared to alt-colors style, with dots for all intermittent water:
alt-colors-salt-intermittent-test

@StyXman StyXman deleted the 3893 branch March 9, 2020 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new features Requests to render new features water
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render water areas differently when tagged salt=yes
4 participants