-
Notifications
You must be signed in to change notification settings - Fork 822
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
Administrative boundary is not rendering consistently #3822
Comments
|
I've downloaded the data and tested it with the current master branch, with the same rendering result. The high-zoom level administrative boundary lines are rendered based on type=boundary and multipolgyon relations imported into The name label may still rendering because the administrative boundary labels are rendered from both relations and ways, but I'm not sure. Does anyone understand the cause of this behavior? The relation is Mampio (9794046) and the way is 704324668 |
|
The next step is to load that data and then examine it in the DB with qgis or similar |
|
Walter left a comment which I received in email, though it seems to have disappeared here on github: "This is quite simple: Because this way a) is not a member of an admin relation and b) is not closed (it has to be closed to be a polygon), it is not rendered. The rendering is now fixed, so it appears that the relation was broken previously. I'm not sure why I missed the problem in JOSM. It's a bit of a mystery to me why the text label was still rendering above, when the line wasn't. The |
|
I think this issue should be reopened because the bug is not resolved and has become slightly crazier. As you can see from the screenshot below, previously no border line was rendered but now two borders lines are rendered (the upper border is incorrect based on the stored data in OSM), and a segment of the coastline that is part of the admin relation (between the 2 duplicated borders) is not rendering as a border. |
|
You are right. I tried downloading the new data and rendering again on my setup, and I get the same error: I guessed that it might be caused by an error in the Test without I downloaded the full relation in JOSM and there are no validator errors now. |
|
I fixed the rendering by reversing the direction of way 704324668 so that it's the same as the direction of the coastline: I'm not certain why this makes a difference. Other areas such as multipolygons seem to be imported without problems when not all of the ways are aligned end-to-end. Is it an error in osm2pgsql, @pnorman? |
|
I think the way direction should not make any difference. I think this edge case reveals a bug somewhere in the toolchain. |
That is probably due to #2234 - admin line are rendered from It is possible that switching the admin lines to render from But I am still curious if there is something in osm2pgsql that is causing this error. |
|
Ghost ways may be caused by a osm2pgsql bug osm2pgsql-dev/osm2pgsql#1394 https://lists.openstreetmap.org/pipermail/dev/2021-February/031048.html
Once new osm2pgsql is deployed on OSM servers this bug will also disappear as boundaries are edited in general. |
|
As original issue is fixed and phantom line is caused by a known bug I will close it. Thanks to @joto for a fix in osm2pgsql-dev/osm2pgsql#1396 ! Note that OSM servers will be fixed once it gets deployed and relevant boundaries are edited. |





Expected behavior
All boundary ways should be rendered for all
role=outerandinnerway members of atype=boundary+boundary=administrative+admin_level=10relation.Actual behavior
One
outermember way is not rendered with the usual dotted line, while adjacent member ways have their dotted lines rendered. Weirdly, the administrative boundary name label is rendered along the unrendered boundary way (see attached screenshot) which implies that there is no geometry problem in the boundary relation itself.Links and screenshots illustrating the problem
The outer boundary member way that is not rendered with dotted lines (but labels are rendered): https://www.openstreetmap.org/way/704324668
Screenshot (missing boundary is near the bottom of the image):

The text was updated successfully, but these errors were encountered: