-
Notifications
You must be signed in to change notification settings - Fork 819
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
Rendering of strait from z10 #3438
Conversation
Great, thanks for picking it up! Please make a test on some other node, because this one renders |
Is this only on nodes? Will it also render on linear ways?
The wiki suggests using a way for long, narrow straights. There are 1001
nodes, 600 ways.
…On Mon, Oct 8, 2018 at 1:21 AM kocio-pl ***@***.***> wrote:
Thanks.
https://wiki.openstreetmap.org/wiki/Tag%3Anatural%3Dstrait
[image: taghistory 59]
<https://user-images.githubusercontent.com/5439713/46583907-9081e000-ca5d-11e8-89c6-ba7f51758624.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3438 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshDOvc_EKDhjTx4IWYQCAbi7NWMMVks5uiinvgaJpZM4XL3hp>
.
|
I'm not aware of any linear rendering for such things, only nodes and areas (closed ways or relations) - this code is shared for bays for example. |
The wiki page claims:
- "when a strait is long, narrow and curved or has side channels or an
otherwise complex and ambiguous coastline form it often makes sense to map
it as a linear way. This should roughly follow the centerline of the water
channel like in case of the Matochkin Strait
<https://www.openstreetmap.org/way/163242449>" (link to OSM way
163242449)
- "As of March 2018 there are about 760 straits mapped with nodes, 540
with linear ways and 290 with either multipolygons or closed ways"
So a linear way / line down the middle of the straight is almost as popular
as a node.
Rendering the lable at the center of the line or center of the area should
be fine, if that's possible?
In the future we could consider rendering the name alongside the linear
way, like was suggested for ridges and valleys, or like what is currently
done for waterways
But I'm happy with a lable at a central point. I just wanted to check if
the "areas" and linear ways would get rendered too.
…-Joseph
On Mon, Oct 8, 2018 at 9:34 PM kocio-pl ***@***.***> wrote:
I'm not aware of any linear rendering for such things, only nodes and
areas (closed ways or relations) - this code is shared for bays for example.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3438 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshHl0LTfw_rHIoLgFt7gK7YDzmRWgks5ui0ZRgaJpZM4XL3hp>
.
|
I think adding linear rendering is a task for a separate PR (it will be good to check if some other similar objects might be rendered like that). |
Thanks a lot for this code! Works as expected. Now if anybody would like to research how to support linear shapes, it would be next big step... |
@geozeisig, look at the cap horn for ways |
It looks like |
This was mentioned before:
|
Rendering on linear ways could be done the same as with rivers. This could determine the direction of the font. It would be repeated at long ways. Only the font size could be larger in many places, which could be a problem to assess correctly. |
Fixes #804
Changes proposed in this pull request:
Add label to
natural=strait
from z10Test rendering with links to the example places:
https://www.openstreetmap.org/relation/2667319
Before
After