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

Render path with bicycle=designated almost as a cycleway and segregated as a cycleway #184

Merged
merged 6 commits into from
Oct 1, 2019

Conversation

Florimondable
Copy link
Member

link to #143 (but not completed yet, segregated must be done also)

Can't be able to fix the oneway arrow not rendered issue on path with oneway:bicycle=yes

Capture d’écran de 2019-09-26 22-36-27

@Phyks
Copy link
Member

Phyks commented Sep 27, 2019

Can't be able to fix the oneway arrow not rendered issue on path with oneway:bicycle=yes

Here is the fix I think Phyks@5f29c76.

@Phyks
Copy link
Member

Phyks commented Sep 27, 2019

By the way, could you post before/after pictures (or the URL used, so I can go and check the before on cyclosm.org easily)? Thanks!

@Florimondable Florimondable changed the title Render path with bicycle=designated almost as a cycleway Render path with bicycle=designated almost as a cycleway and segregated as a cycleway Sep 28, 2019
@Florimondable
Copy link
Member Author

Before (bicycle=designated only) :
Capture du 2019-09-28 23-11-48

After
Capture du 2019-09-28 23-11-08

higway=path bicycle=designated segregated=yes : draw a cycleway with a right outline as a path
Capture du 2019-09-28 23-10-07

higway=footway bicycle=designated segregated=yes : draw a cycleway with a right outline as a footway
Capture du 2019-09-28 23-08-11

@Dardy87
Copy link

Dardy87 commented Sep 29, 2019

Are you sure on the last example? in my opinion higway=footway bicycle=designated segregated=yes
Is a wrong tagging (even if I found it in some cases, but usually I fix it).
Otherwise also the schema higway=cycleway foot=designated segregated=yes should be valid (but I repeat, for me it's wrong).

Mixed cycleways and footway should be tagged as paths. Is it specified in some wiki that maybe I miss?

@Florimondable
Copy link
Member Author

@Dardy87 I agree with you it is bad tagging.
But I was wondering if it's a scheme use a lot or not.
After few overpass request around the word i seems it's not wildly used, so we can remove it.

@Florimondable
Copy link
Member Author

We should remove also special rendering with highway=footway/bridelway and bicycle=designated, it's bad tagging also and we should not promote bad tagging.

…ging.

Still keep footway and bridleway as path if bicycle=yes.
@Phyks
Copy link
Member

Phyks commented Sep 30, 2019

way[highway=footway][bicycle=designated] is a bad tagging (up to 7% of the highway=footway though, https://taginfo.openstreetmap.org/tags/highway=footway#combinations) and is checked by the JOSM validator and Osmose (https://github.com/osm-fr/osmose-backend/blob/ff294d7b5f6289b968d7165e6246f870e46c846a/plugins/Josm_combinations.py#L1461-L1462).

way[highway=bridleway][bicycle=designated] is probably as well although it's much more common (up to 29% of bridleways, https://taginfo.openstreetmap.org/tags/highway=bridleway#combinations) and not checked by any validation tools. I agree this is bad tagging though and I'll try to submit a patch for extra checking in JOSM etc.

labels.mss Show resolved Hide resolved
}
[highway='cycleway'] {
[highway='cycleway'],
[highway='path'] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to have an is_primary_bike value exported in the SQL output and filter on this one. This one, we could also account for some bicycle=designated cases or roads without motor traffic.

Might also be better in terms of Mapnik XML file size / etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_primary_bike for what tags combination ?

ELSE 'no'
END AS segregated,
CASE
WHEN tags->'oneway:bicycle' IN ('yes', '-1') THEN 'yes'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THEN tags->'oneway:bicycle' to keep the direction, or we will never need it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the question.

ELSE 'no'
END AS segregated,
CASE
WHEN tags->'oneway:bicycle' IN ('yes', '-1') THEN 'yes'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THEN tags->'oneway:bicycle' to keep the direction, or we will never need it?

ELSE 'no'
END AS segregated,
CASE
WHEN tags->'oneway:bicycle' IN ('yes', '-1') THEN 'yes'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THEN tags->'oneway:bicycle' to keep the direction, or we will never need it?

@@ -1987,8 +2023,7 @@ Layer:
ELSE 'no'
END AS oneway,
CASE
WHEN tags->'oneway:bicycle'='no' THEN 'no'
WHEN tags->'oneway:bicycle'='yes' THEN 'yes'
WHEN tags->'oneway:bicycle' IN ('yes', '-1') THEN 'yes'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THEN tags->'oneway:bicycle' to keep the direction, or we will never need it?

line-width: @rdz17_cycle;
[oneway='no'] { line-width: @rdz17_cycle*1.5; }
[oneway='no'][oneway_bicycle='no']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably try to avoid this double check here. I should review the exact tags we need, but probably we could fill in the oneway_bicycle value with the oneway value by default, therefore having:

  • oneway which would be the general traffic oneway
  • oneway_bicycle which would be the real oneway status for bikes

line-width: @rdz12_path;
}
[type='cycleway'] {
[type='cycleway'],
[type='path'][designated='yes'] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have designated, segregated and other tags exported. Not sure but we could probably factor them together. :/

@Florimondable
Copy link
Member Author

way[highway=footway][bicycle=designated] is a bad tagging (up to 7% of the highway=footway though, https://taginfo.openstreetmap.org/tags/highway=footway#combinations)

I read 0.32% of footways have also bicycle=designated, so not much.

way[highway=bridleway][bicycle=designated] is probably as well although it's much more common (up to 29% of bridleways, https://taginfo.openstreetmap.org/tags/highway=bridleway#combinations)

I read 3.3% of bridleways have also bicycle=designated, so not much.

@Phyks
Copy link
Member

Phyks commented Oct 1, 2019

Indeed, I missed the fact that we could get stats on bicycle=designated exactly. That's perfectly fine then!

Phyks added a commit that referenced this pull request Oct 1, 2019
@Phyks Phyks merged commit f19f8b1 into cyclosm:master Oct 1, 2019
Phyks added a commit to cyclosm/cyclosm-website that referenced this pull request Oct 1, 2019
@quasart
Copy link
Contributor

quasart commented Oct 3, 2019

Nice ! Many useful path have been enhanced, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants