-
Notifications
You must be signed in to change notification settings - Fork 821
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
Protected areas and national parks do not render unless they are relations or area=yes #3819
Comments
|
Since boundaries of all kinds in OSM traditionally can be tagged on both the linear ways and polygons there is some ambiguity in semantics here. For administrative boundaries it is commonly accepted that administrative units may only be mapped with boundary relations and not with closed ways - which strongly simplifies interpretation. We take this into account in rendering here (#3762). For nature reserves and protected areas this is not that clear - but you could interpret these boundaries in analogy to administrative boundaries. |
|
Yes. You could interpret it that way. On the other hand, the instructions at https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dprotected_area begin:
Taginfo shows about sixty thousand closed ways with the tag. It appears to me as if that train already left the station. |
|
Please, try to phrase things in a bit less aggressive form. It is not helpful. Especially in case where it is possible to make a good argument.
Where I can see count of a closed ways on the taginfo? |
|
Oops, sorry, the 'closed' came out accidentally from my fingers because I had the Wiki page with those instructions open at the time. There are 60,000 ways with the tag; an unknown fraction as yet are closed. I suspect that it is a large fraction, owing to the fact that the Wiki page indicates that I'll be able to answer the question about statistics for North America, but it will likely take a few days, because I want to get my North America database rebuilt with the proposed fix first. I can't answer for the whole planet, since I don't have the resources to host a planet-scale database. |
|
In North America, using an import with osm2pgsql's It is perhaps noteworthy that adding As I previously noted, this is for North America alone. I don't have a ready way of answering this question for the planet. For the record, the information was obtained by running the following SQL query on an select count(1) from na_osm_line l
where l.boundary in ('protected_area', 'national_park')
and l.osm_id > 0 -- excludes relations
and ST_StartPoint(l.way) = ST_EndPoint(l.way) -- includes only closed ways
and not exists (select 1 from na_osm_polygon p where p.osm_id = l.osm_id) -- excludes polygons
and not exists (select 1 from na_osm_rels r where l.osm_id = any(r.parts)) -- excludes relation membersI modified the query to return OSM ID and name (LIMIT 20) and spot-checked the twenty features that it returned; all were indeed closed ways that were tagged This usage therefore appears to have become widely established, at least if having it explicitly suggested on the Wiki and used in the suggested way on three thousand features in North America alone makes it 'widely established'. (On a map with billions of features, I suppose this is not a foregone conclusion - perhaps the three thousand amounts to an insignificant number.) What is perhaps surprising is that nobody noticed the unwanted behaviour earlier. A possible explanation is that mappers were adding |
I take it the state your talking about is New York?
Semi off topic, but do you mind if I ask why you controversially tagged a state park as a national park? I ask because I got in a pretty argument with another user over it and he was never able to give me a good justification for doing it. I seem to remember you mentioning it on the USA mailing list maybe, but I don't think it was explained good there either or if you thought it should be a wider, country wide practice. Is it mainly for rendering purposes or what? Thanks |
Yes, my imports were confined to New York. (I'm in the planning stage one in the neighbouring state of Connecticut, which is being edited on the Wiki but has not yet been formally announced - it surely will be before actual editing begins.) The tagging of the completed (rather, ongoing: they're updated sporadically) imports was discussed extensively, and there's not a I've also mapped (manually, assisted by data from public-domain tax rolls) many of New York's State Parks. The ones I did are tagged fairly consistently along with whatever appears to be the primary land use (usually one of Even this tagging engenders controversy, because some mappers expect all land uses to be homogeneous. There is no good choice for tagging a State Park that encompasses sport pitches, picnic areas, playgrounds, a lake for swimming and boating, several museums, hotels, restaurants, and a few thousand hectares of backcountry for hiking and primitive camping. Of course, the separate facilities within the park can and should be mapped, albeit with indefinite boundaries to their land use (another controversial point!), but that does nothing for the name and definite boundary of the park as a whole, which American users surely expect to see on a map.
I rather do mind, not because I do not choose to answer, but because it is off topic and because I've seen the edit wars. Forgive me if I decline to participate in those. I did that with exactly two 'parks': the Catskill and Adirondack Parks. They are sui generis entities, not State Parks. (They are enshrined in the state constitution, and enjoy stronger protection than any National Park - the latter can be erased in a moment by an act of Congress; the former require a constitutional amendment.) I do not argue for it as a general practice. It is the "least bad" tagging to deal with a very specific legal situation that I believe to be unique to New York. More detail at https://www.openstreetmap.org/user/ke9tv/diary/390233. As I mention in the diary entry, I'm also willing to tolerate a 'corner case' for a feature that's bigger than some European countries. (The Adirondack Park is bigger than Slovenia or Luxembourg, a little smaller than Belgium.) If it is indeed a mistagging, if it's limited to features of that significance, at least it won't proliferate! Please take further discussion of this issue somewhere else. It doesn't belong here. I will not answer you again in this thread, and I apologize to the developers for taking the bait. |
|
Thanks for the indepth explination. I appreciate you have put some thought into it and admit that it is controversal. Its obviously a complex topic, with no simple answer (although its clear to me that tagging all state parks as national parks like some users suggest is the wrong way to go) and I don't expect any more detail then you provided. It was actually more then I wanted, but it is still helpful. So not done in vain. Its unfortunate that you would charactorize my question as "bait" or an attempt at anything beside genuine intelectectual curiosity. As that is truely what it is. There should be an assumption of good faith granted to people on here. Its unfortunate you decided to forgo it in this case. Progress will never be made on this topic or any others without us giving each other the benefit of the doubt that we all have the best intentions. Also, me and the other user never edit wared each other and I don't appreciate the insunation that we did. We argued about it, in an extremely unpleasent way, but that was it. I have zero urge to do that here or to letigate past actions. Like said, your answer was fine and nothing more needs to said about it. So, thanks for the answer. Just not for the other, uncessary bits. Btw, even the admins go off topic once in a while themselves. So, I'm sure they don't mind it in this case. As long its only constrained to a few messages. As it will be. Since I have zero wish to waste my time disscussing it with you here, or really anywhere else, anymore then it already has been. Adamant1 |
|
Somehow my sight was narrowed when I opened this ticket, and so I missed that it duplicates #468, #713 and #1141 - the last of these is the one that appears to be used in tracking it. #1141, in fact, proposes exactly the same fix. Is the consensus of the maintainers that this is a problem with the Wiki documentation for The fact that #1141 is still open gives me hope that the change might be considered, in light of the number of existing objects that it affects. I am guessing that until the audit I describe in #3819 (comment), there was no hard data about the extent of the problem. |
No, we have not developed a consensus on the matter and the wiki only concerns us as far as it reflects mapping practice and community consensus. If you'd submit a PR implementing the change suggested here that would not be accepted right away as a self evident improvement but you would have to argue for the benefits for the goals of the style. To explain the ambiguity of boundary tagging of ways in case closed ways are interpreted as polygons: See for example this https://www.openstreetmap.org/relation/2785126 If the outer ring of this relation was represented with a single way that way would accurately be tagged admin_level=2 according to the established rules of boundary tagging on ways. If that closed way was then however automatically be interpreted as an admin_level=2 administrative entity that would be wrong because it is only an admin_level=8 entity (that is a disjunct part of an admin_level=2 entity). I am sure similar situations exist with protected areas and national parks. I am closing this in favor of #1141 - thanks for pointing this out. |
Consider the area feature https://www.openstreetmap.org/way/418346662 (I know its tagging is controversial, since it isn't formally a 'National Park' - but that's not the point.)
Or the area feature https://www.openstreetmap.org/way/47798759, which appears to be a good example of correct
protected_areatagging for a species-protected area.These do not show at all on the map, despite being tagged
boundary=national_parkandboundary=protected_arearespectively, because they go into the database as lines rather than polygons. The culprit is thatboundaryis a linear feature in the style file, with no override in the tag transformer.A workaround is to make the offending features
multipolygonorboundaryrelations, or to addarea=yes.Expected behavior
Render the affected features as national park or protected area, respectively.
Actual behavior
Nothing appears on the map.
Links and screenshots illustrating the problem
https://www.openstreetmap.org/way/418346662 and https://www.openstreetmap.org/way/47798759 render nothing.
Possible fix
It looks as if adding
to the
polygon_valuestable inopenstreetmap-carto.luamight be a fix, but I don't have an OSM-carto instance available to test on at the moment.The text was updated successfully, but these errors were encountered: