-
Notifications
You must be signed in to change notification settings - Fork 823
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 specific access tags #4952
Conversation
mode specific access tags relevant to primary mode of highway interpreted to determine access marking for: Road types (motorcar > motor_vehicle > vehicle) Footway (foot) Cycleway (bicycle) Bridleway (horse)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is first look at the implementation, i have not actually tested it yet and this definitely requires thorough testing.
Overall, i think this is a coding wise a good design for the initial take on the subject. But this is my personal opinion based on me being fine with the concept of using SQL functions to modularize SQL functionality in the style. Others might see this differently.
If we use this approach what we should be aware of is that if we ever change the parameter lists or the names of the functions we will need to make sure our installation procedure drops the old functions - because that is not taken care of by the CREATE OR REPLACE
. This should probably be mentioned in our developer documentation.
Will separately comment further on the handling of highway=track
in #214.
functions.sql
Outdated
CASE | ||
WHEN accesstag IN ('yes', 'designated', 'permissive', 'customers') THEN 'yes' | ||
WHEN accesstag IN ('destination', 'delivery', 'permit') THEN | ||
CASE WHEN primary_mode IN ('motorcar', 'pedestrian') THEN 'restricted' ELSE 'no' END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You here distinguish between a two class and a three class access restriction model based on the primary mode - while we make this distinction based on road class. While this might not be significant in the exact design model you propose, it would be in many styling variation (like for example if you render highway=track
with primary mode motorcar
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You here distinguish between a two class and a three class access restriction model based on the primary mode - while we make this distinction based on road class. While this might not be significant in the exact design model you propose, it would be in many styling variation (like for example if you render
highway=track
with primary modemotorcar
).
Yes and no. I renamed the functions to carto_highway_primary_mode
etc. and returned a "primary mode" for clarity, whereas it's really an "access type", so you could classify into motorcar_track
if you wanted to have a 2 class access style for track. I could change it back to say access_mode
. I was keen not to "reparse" all the way from highway to avoid repetition and improve efficiency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Primary mode of use and road class are well defined concepts - you will need to explain what you exactly mean by "access type".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fundamentally the "access category" is a data abstraction that keeps the code simple and flexible. A given way is classified into an access category, which mostly depends on the highway type, but for highway=path
also depends on access tags. All the decisions can then be made on the "access category", e.g. this determines which mode-specific access tags are to be used, but it is also used to distinguish between 2-state and 3-states access renders. So it is a single value that encapsulate both the "primary mode" and how the different access values will be translated into yes|restricted|no
. So in retrospect it was confusing to conflate the "access category" with "primary mode". Hopefully most of this is documented in the comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fundamentally the "access category" is a data abstraction that keeps the code simple and flexible.
I think it is not a good idea to invent such concepts as parameters of implementing styling logic, especially if their meaning changes when changing the design logic.
The primary concern when implementing this should be that other style developers can easily understand and modify the tag interpretation logic. The secondary concern should be code performance since we are going to use it on the fly during rendering. Code complexity itself is lower priority.
As i said - we actually want to make this distinction based on road class, because it depends on the road class and its line signature if we can only show a two class access classification or if we can show three classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can call it road_class rather than access type/category. That's all it is really. highway=cycleway
and highway=path, bicycle=designated
belong to the same "road class" because the access marking works in the same way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then i'd suggest to simply re-cast highway=path
into highway=cycleway/bridleway/footway
in SQL and work with that as parameter. You essentially already have the function for that (carto_path_primary_mode()
). We currently do this re-casting in MSS code - but since you need it for the access restriction processing you can do it in SQL and then simplify the MSS code as a bonus.
You'd need an additional query nesting level for that or move the carto_highway_int_access()
call to the outer query.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then i'd suggest to simply re-cast
highway=path
intohighway=cycleway/bridleway/footway
in SQL
Yes, I was thinking along these lines - an effective int_highway
. I am keen to collapse the different road types in one place, and will have to check that this works across the wider framework.
functions.sql
Outdated
WHEN motor_vehicle IN ('yes', 'designated', 'permissive', 'no', 'private', 'destination', 'customers', 'delivery', 'permit') THEN motor_vehicle | ||
WHEN vehicle IN ('yes', 'designated', 'permissive', 'no', 'private', 'destination', 'customers', 'delivery', 'permit') THEN vehicle | ||
ELSE "access" END) | ||
WHEN 'pedestrian' THEN carto_int_access('pedestrian', 'no') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is odd - if you have a distinct primary mode pedestrian
(and it is unclear what this means relative to foot
): why does this universally mean access=no
. Note that while we currently do not render highway=pedestrian
with access dashing, access restricted pedestrian roads of course do exist - like in private parks or in military facilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, perhaps renaming "access type" as "primary mode" has hindered rather than helped. The idea of a "pedestrian" access mode was an implicit motorcar/motor_vehicle=no
. Putting this no
into int_access
simplifies later queries about whether to add colour for bus=yes
etc.; only ways with int_access=restricted|no
are considered.
The alternative is to set int_access=NULL
and to treat highway=pedestrian
as a special case [IF int_access=restricted|no OR highway=pedestrian THEN <consider bus=yes marking>
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems flawed, as if you have, for example, access=foo motor_vehicle=bar hgv=baz then the access restriction for hgv is the value of the hgv tag, regardless of if we understand that value or not.
All we need to do is coalesce the default value and access tag hierarchy in the appropriate order and compare that with the values we're considering.
That depends on our strategy of dealing with unknown tags in general. If we'd show The simplest alternative to introducing a catch-all would be to simply ignore unknown values (because we don't know what they mean - hence any interpretation we'd make would be wrong). That is what this PR currently does. I am not saying this is the only viable approach. But it is not clearly wrong either. In case of an unknown tag the reason might be a typo and the typo might be in the key or in the value. If it is in the key the approach of treating unknown tags as fully invalid and void would be the better. The other alternative would be to introduce an additional visualization class meaning |
We have to interpret unknown values regardless. If we have access=baz and it's unknown we still have to render the road one of the three ways.
I don't think a 4th class is possible without becoming confusing. |
I don't follow this specific point, since we don't consider the "access restriction for hgv". But, I guess the general point is about Personally I feel that the outcome of the COALESCE approach will be more obvious to mappers (if motorcar is set, it's value will determine access marking, if not, motor_vehicle etc.)
Good point. Currently there is an asymmetry between the mode-specific tags which are "vetted", and the overall access tag, which is not, primarily because we have to do something with unknown values. |
Currently, if a road is tagged So far the style universally ignores unknown tags (i.e. it treats them as if they were not there) - with the exception of the few catch-alls we have in the style (which we try to reduce - see #4568 and #4725). So far all the catch-alls we deliberately have in the style are cases where an unknown value naturally is to be engrossed in a common design with other known values. Like unknown This is different here,
I would agree if that 4th class was indeed another class of access restriction. But it would not be, it would be an error indicator. It would not transport information about the geographic reality, it would indicate that there is an error in the data that prevents us from reliably providing such information even though the other data clearly indicates that such information should be shown. I had been sceptical about #4723 in general (and i still am) - but this specific constellation where there is no good solution other than explicitly showing cases where there is an error in the data is one where i would be in favor of an explicit error indicator. |
If you don't like the word class, call them a distinct symbology. I don't think we can have four given the number of other things we render on roads.
A catch-all is when we're rendering all features regardless of what they are. That's what we've tried to reduce. Deciding what to do with unknown access values is, on the other hand, something we must do if we render any. If for each road we render it with three different symbologies to represent different access restrictions, we must then have some way to decide which of the three to use given the access related tags. This includes when the access tags make no sense to us - unless we completely stop rendering the road, we still have to decide which of the three. |
#4568 and #4725 are cases of catch-alls in secondary tags where any and all values with a certain key other than a few explicitly handled otherwise have a distinct effect on rendering compared to no such tag being present. Our goal to support mappers in consistent mapping practice IMO mandates us to reduce these because it is not only ill-defined primary (feature) tags being rendered without there being a consistent mapping practice in use that works against this goal, the same applies for secondary tags.
As already said - our standing practice universally implemented in this style except for the few catch-alls we have is to ignore them. If we are considering changing that we should look at it from the perspective of our goals, specifically here (a) the goal to support mappers in consistent mapping practice and (b) the goal for our design being intuitively understandable for mappers. Looking at the suggestions we have so far:
Personally i am confident that an intuitively readable design could be found for the third option (under the paradigm of being an explicit error indicator and not simply a fourth class in addition to the three we have). But developing such is delicate design work and this PR was started under the premise of changing tag interpretation only and not the actual style design. So i am hesitant to suggest to @dch0ph to work on this. Everyone should also keep in mind that, compared to other tags, completely undefined values with no consensus meaning are really rare in access tagging: https://taginfo.openstreetmap.org/keys/motor_vehicle#values For both of these the explicit |
I would suggest the following for this PR: Switch to the COALESECE approach so that unknown (=invalid + non-interpreted) tags are not ignored, but reach the "interpretation" level (the Return It is then devolved to the MSS whether to show a render for unknown/UNKNOWN access. [In the current PR/MSS, unknown values would be ignored as only
My personal preference would be to strip out "access"= |
I would strongly suggest first to develop consensus on the desired tag interpretation and then think about implementation details. Choosing a certain tag interpretation because it is more convenient to implement would be a bad idea. In principle a mixture between approach 1 and 2 would be possible in the form that the explicit |
That would work for me. Rather than This would be functionally equivalent to a simple COALESCE, but ignoring There is the issue of what to do with |
This is not what I suggested. I made no suggestion as to what a way with unknown access for the primary method is. There is some justification for treating unknown differently, as it's an explicit unknown as opposed to a value we don't understand. access=no motor_vehicle=unknown truly indicates an unknown value, as opposed to access=no motor_vehicle=foo indicates a value we don't understand. Falling back to the access=no is wrong in the second case because the access tag doesn't tell us anything about what the mapper specified for motor_vehicle access.
You're proposing not unknown values, but invalid ones. Do we do this elsewhere? In the past we have rejected becoming a QA layer as it is clearly incompatible with 3/4 purposes. What we do with the tracktype is different - we have a symbology we show for unknown values where no tracktype is supplied, but we're not aiming for a different symbology for values that we believe are errors.
There still is. If someone tags highway=residential access= they get the feedback that their tag worked, because it still displays as having access. |
Ok, i removed the attribution to you for the approach 2 in my list. But since my aim here is to develop consensus on a concrete approach to access rendering this does not really bring us forward. It would be helpful if you'd indicate which concrete approach you'd favor and which approaches you would find acceptable. So far we have discussed approaches 1-3 from #4952 (comment) and the mixture between 1 and 2 with explicit
This is exactly why i brought up the mixture approach as a fourth option.
No, as said, this would be a first in this style - but so is the combined interpretation of several tags in this form that leads to this problem in the first place. The tracktype case is different because we have no implicit default there (while we have an implicit default of
No, because adding (for example) |
@pnorman - reacting with a 👎 to my comment but not explaining what you disagree with is decidedly non-helpful. If there is anything unclear about the list of options i sketched please ask. If i misunderstood your comments and you think you have made a concrete suggestion different from the ones i listed please explain. If you disagree with my approach to developing consensus on this matter overall please take the initiative and explain what concrete solutions you deem viable. |
Following discussion moving: access=customers -> "restricted" marking access=permit -> "no" marking
Functions renamed for clarity Changed logic for mode-specific tags, only ignoring 'unknown' values unknown access type return for unknown/uninterpretable path promoted to cycleway/bridleway in SQL rather than MSS
To simplify further discussion (but not to prejudge consensus on tag interpretation), I've committed a bunch of changes that emerged from comments to date.
I have checked that update code works as expected for the previous test cases, but have not exhaustively considered the various edge cases discussed. Ideally this would involve a "test sheet" or a shareable demo server. I noticed that the roads query seems to include some cruft on the railway branch, e.g. evaluation of an |
From a quick look this seems like a structure that can be adjusted to any of the options in tag interpretation discussed so far so works well in terms of our goal of adaptability. Same applies to adjusting the tag re-casting of You have not yet made any changed to the pedestrian logic - you still universally have pedestrian roads as |
Thank for you the encouraging comments. I'll admit that limited thought went into the I'm not convinced that a primary foot mode works here. They are basically vehicle roads with signage to restrict vehicles in much the same way as ordinary roads. I don't see how you would interpret/use the I would counter with something like:
i.e. use the vehicle tags as for roads, e.g. It might be interesting (separately) to develop a marking for If the outcome were |
No, that is a wrong understanding of
|
I think this is going too far outside the topic of this PR and #214. As indicated at the moment we are not rendering access restrictions on As far as a hypothetical rendering of exceptions from implicit access restrictions (like on But again - this is a discussion we should not have here. If and when the topic practically comes up the proper way to decide this would be to test how this would look like in practical rendering on a larger scale. |
OK. In the interests of keeping things moving I've adjusted the access interpretation of
i.e. using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pedestrian road part looks good to me now.
Overall this seems essentially untested so far: functions.sql does not run:
psql:functions.sql:25: ERROR: syntax error at or near "END"
LINE 22: END
^
psql:functions.sql:41: ERROR: syntax error at or near "END"
LINE 14: END
^
psql:functions.sql:59: ERROR: syntax error at or near "END"
LINE 16: END
^
psql:functions.sql:83: ERROR: syntax error at or near "END"
LINE 22: END
^
Anyone who wants to see this move forward can help by testing and reporting any issues. Useful would in particular an analysis if the introduction of the functions leads to substantial performance decrease. This can be looked at through pg_stat_statements.
@dch0ph do you have the ability to mark conversations as resolved? If so, can you indicate they are for the old comments, and if not, can you leave a comment saying it's fixed. I consider it more important to have our code easy to read and understand than for it to be adaptable to different styles. I don't believe we should make the code more complex in order to make it easier for other people to potentially make changes. I might rank this differently if it were a different section of the code, but our roads code is already complex to the point of being incomprehensible and the largest barrier to customization is understanding it. My strong preference would be to release 5.9.0, merge the flex PR, make the necessary column changes and normalization at import time, and then merge the style changes for being part of 6.0.0 |
Having done a lot of work based on the road layers during the past years i can say that my experience here is very different. The main barrier to do any meaningful work in the road layers beyond fiddling with minor styling adjustments is the lack of structure, modularization and functional separation in the code, the extensive duplication of SQL in the road layers and the endless spaghetti MSS with interleaved use in different layers. What this PR is doing in that regard is trying - in a very small way - to not add to this mess but to start using new means (in this case SQL functions) to take a first step to break out this dead end. Anyway - even if we agree to disagree on that: You have not presented any alternative approach for @dch0ph to pursue in solving #214 compared to the approach they took. In other words: Your suggestion seems to be to forgo addressing #214. I don't consider that acceptable.
Let's discuss release planning in #4981. And let's discuss the question of if to do styling specific tag interpretation at import time in a separate issue. |
@pnorman I've resolved the queries raised in your last review where the query is clearly closed / resolved / superceded. There look to be two minor unresolved points (minor in the sense that they do not affect the outcomes and are more about the interpretative framework):
|
I suggested resolving it by moving the SQL logic to import time.
I never said that. |
We should avoid the overload as it causes confusion.
I'm okay with it too. The major issue remaining is where the processing should be done, and the maintainers will need to come to a consensus on that. |
I have said multiple times already - this is a suggestion that requires looking at a much larger context. We should discuss it separately from this PR. If you want to shelve addressing #214 until we have had that discussion and reached consensus that is fine - but then please open an issue for that and present arguments why you think this would be beneficial for this project. |
Return "unrecognised" rather than "unknown" if access restriction is not one of recognised values
Addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity my updated review of this:
- I support differentiating between the explicitly tagged
unknown
and the effective classification asunrecognized
. - I maintain my previous assessment from Rendering specific access tags #4952 (comment) that slightly shortening the
highway=path
logic by depending on the assumption thatcarto_path_type()
returnscycleway
only ifbicycle
is set andbridleway
only ifhorse
is set is not a good idea. If no agreement can be found on the matter i am not going to insist on this but i would then insist on adding a warning comment explaining this dependency and i would also suggest to keep the more general variant commented out so style developers who want to adjust the logic can easily move to that.
Note on short-circuiting logic in carto_highway_int_access
I have added this. I prefer the simpler code, where "decisions" around, say, |
I cannot agree that a discussion of putting logic in functions is out of scope on a PR that is the first to introduce logic in functions. |
This is not really relevant here at the moment since we are not discussing a change in the logic of how to interpret Because i am usually taking the opposite approach. I think about what is map design wise the desirable logic of displaying things and then i think about the most elegant way to implement that is the framework we have. Adjusting map design to the technical constraints is of course necessary at times - but this is typically only of concern with geometric aspects and spatial relationships, not with tag interpretation.
As before you seem to disagree with something i have not said. Anyway - it is fair enough that if i ask you to make your case of doing style specific tag interpretation in preprocessing in a separate issue i should likewise discuss the idea of introducing SQL functions in a separate issue - which i have done in #5004. |
No. I'm just arguing to keep the code in functions as clear as possible. If somebody does want to change the logic, they first need to understand what the code is doing. The natural reaction to looking at In the end, the "more general formulation" (which I initially used from a simple cut and paste) is not adding anything useful. It only has an effect if somebody has created a perverse |
Thanks. I think i understand the consideration behind that approach better now. It is also my experience that people have very different approaches to understanding logic and its implementation in code. It is best not to infer from one's own approach to understanding on how others will see this. Anyway, with the warning comment added i think this is ok.
It is not a perverse way of casting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing final review i noticed that this currently breaks bridge/tunnel rendering on highway=path
- you either need to modify carto_path_type()
to not return path
or re-add highway_path
selectors in MSS code at some places.
CASE | ||
WHEN bicycle IN ('designated') THEN 'cycleway' | ||
WHEN horse IN ('designated') THEN 'bridleway' | ||
ELSE 'path' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be footway
rather than path
if you want to eliminate highway_path
from MSS altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conservative option is to keep the option of rendering highway=path
differently from highway=footway
(there already seems to be some difference in that footway
can have an area render, but not path
).
Bridge not being rendered on highway=path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this seems to work fine now also with tunnels and bridges. I am fine with leaving highway_path
as a distinct feature class for those features that are not re-cast to cycleway/bridleway. As you point out this is still a difference w.r.t. polygon rendering.
Regarding foot/bicycle/horse being distinct columns while the other mode specific access tags being in hstore - that will need to be considered in the next database reload. But of course backwards compatibility of the database structure is a factor to considered here. Historically, we have rarely dropped columns. When you want to run an older version of OSM-Carto on the current database structure that requires relatively few changes. That consideration should not prevent us from consolidating the database layout, but we should be mindful of these things and make considerate decisions with an overall strategic perspective.
The other big thing we have discussed in the exact tag interpretation logic. I am fine with keeping this as it is if this is the smallest common denominator we can agree on.
To summarize: Currently this PR classifies accessvalues (i.e. values of tags indicating access - either generic, access=accessvalue
or transport mode specific, like motorcar=accessvalue
) into a total of six classes:
- recognized
yes
values ('yes', 'designated', 'permissive') - recognized
no
values ('no', 'permit', 'private', 'agricultural', 'forestry', 'agricultural;forestry') - recognized
restricted
values ('destination', 'delivery', 'customers') - explicit
unknown
- these are ignored (treated as if not tagged) - NULL (i.e. not tagged) - these are ignored
- any other values (
unrecognized
)
After this initial classification the different access tags are then conflated into one total classification based on the principle:
For the primary mode of transport we selected for the road class in question the more specific tags (like motorcar=*
) override the more general ones (like vehicle=*
and ultimately access=*
), unless it is in an ignored class (4 or 5) according to the list above.
The resulting total classification is then cast into the visual classes we have:
yes
is shown with the plain road signatureno
is shown with the gray centerline dashing (for the wide roads) or with a gray/desaturated color (for the narrow roads)restricted
is shown with the gray centerline dotting (for the wide roads) or conflated withyes
(for the narrow roads)unknown
/NULL is conflated withyes
unrecognized
is conflated withyes
I don't think this is a good way to deal with the unrecognized
values based on the goals of our project and i have also presented a concrete alternative (approach 3+ as described above). I don't want to push for it here - after all it affects only the very small percentage of access tags that use a value other than those we explicitly interpret. But i still want to - for the record - point out that an alternative has been suggested and is viable (both technically and design wise).
The PR, overall, seems to work fine now in all constellations i have tested and unless something new comes up suggesting otherwise (further testing by others would be appreciated) i intend to merge this as per what was said in #5004 (comment).
partly resolved, partly superseded by discussion on #5004
Merged now, thanks @dch0ph for the patience in working on this. |
Fixes #214
Changes proposed in this pull request:
The code proposed has been extensively discussed in #214, but in summary:
SQL functions introduced that interpret mode-specific access tags in addition to the overall
access
tag.Tags considered are determined by a "primary mode" inferred from the highway types:
Vehicle road (primary mode: motorcar): motorcar > motor_vehicle > vehicle
cycleway: bicycle
bridleway: horse
footway, steps: foot
[Access tagging on
track
is unchanged, i.e. only determined byaccess
]In this initial PR, the interpretation of path is unchanged, i.e. path is considered to be a cycleway or bridleway if
bicycle=designated
orhorse=designated
respectively.The access tags are reduced to a single
int_access
tag tagging the valuesno
,restricted
andyes
(which is equivalent to NULL).restricted
used to indicate an intermediate "some restrictions apply" for vehicles. The access marking used is the the currentaccess=destination
, but the name change reflects the fact that other values are included, e.g.delivery
.The
int_access
is generated, as normal practice for this style, on-the-fly. An option to use a generated column to pre-calculate these values is commented out. In practice, the overhead of combining the access tags is likely to be small given the vast amount of in-line SQL in the roads query. Note that some cruft in the railway side of the roads query has been removed.Other global access tags, such as
access=forestry
, are also now interpreted (equivalent tono
).access=agriculture;forestry
is also accepted, although we don't typically interpret multiple-value tags.The code does not require a database re-load, but does require additional functions to be installed in the Postgres database. These have been placed into a file
functions.sql
so that there is a place where functions for the style can be gathered. This does require an additional step in installing the style, and so installation instructions and the CI test have been adjusted. The Docker set-up has not been touched and will need fixing by somebody who understands/uses it.Test rendering with links to the example places:
Destination marking
Residential highway tagged with
motor_vehicle=destination
.Before
After
No marking
Before
access=yes, motor_vehicle=no, psv=yes
After
Honouring foot
North-south footway tagged with
highway=footway, foot=private
Before
After
Honouring bicycle
highway=cycleway, bicycle=designated, access=no
Before
After
The last example needs discussion since it is a case where
access=no
has been added because the bridge is closed:The logic of access tagging is that the general
access=no
is overridden by the specificbicycle=designated
, and a router should allow bicycles across. So this usage is arguably tagging for the renderer: retaining perhaps a formal right of way (bicycle=designated
) but indicating that the way is closed by exploiting Carto's simple approach to access tagging.It is inevitable that a wider and more correct usage of the access tags will throw up such cases!