-
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
place=archipelago text is not displayed #3394
Comments
Is this a bug in osm-carto, or does |
I don't see it anywhere in the code. Would you like to prepare the code? |
However please note that for relations we probably need to resolve this issue first: osm2pgsql-dev/osm2pgsql#230. |
Ah… That is the same issue that is blocking rendering of For those kind of relations the current tagging approach favoured seems to be adding a node with |
Yes, that's bigger problem with relations rendering. Wen it comes to tagging I think you should ask at Tagging list. |
No, that issue has nothing to do with rendering what is an administrative relation. |
I will change the title to more general. |
It looks like some of these are mapped as multipolygon relations, but the wiki page also suggest mapping as a "type=cluster" relation, which is not very clearly defined. We could render a name label for multipolygons, but our easy options are not great:
The first 3 options would just be a horizontal label, not aligned to the shape of the archipelago. Ideally an archipelago would be have a nice curved text label that embraces the chain of islands from end-to-end at the right zoom level. But to do something like this, we would need to preprocess the archipelago relations and create a new linear way from the overall extent of the islands. I think this would have to be done by a new script or external process? [EDIT: see below; this can actually be done in SQL, no preprocessing require] @imagico, do you know of any tools that could help with this kind of rendering? There are already 740 archipelagos mapped, too many for hand-placed labels. |
Use of place=archipelago on multipolygons is happening with fairly good consistency. There is some risk of this being abused for tagging descriptions or categories like islands of the Baltic Sea or Macaronesia. Like for place=island the risk of people drawing free form geometries is fairly low. There are a few cases of use of place=archipelago on closed ways for atolls which is not quite correct and should be filtered out for rendering (since an archipelago by definition would not be mappable with a single closed way). The current documentation of place=archipelago does not provide any definition that limits its use to spatially cohesive groups of islands and therefore could be used to justify any abuse. This is something that i think would need to be fixed before it can be considered for rendering here. That being said - the French style and the alternative-colors style both implement rendering of archipelagos based on convex hulls. What i use is essentially |
I came to the same conclusion: usage of ST_ConvexHull(way) on the multipolygon relations of archipelagos gives decent results. |
Expected behavior
See a label Isles of Scilly when looking at them.
Actual behavior
No label at any zoom-level. The name of the town Hugh Town is rendered loud and clearly.
Links and screenshots illustrating the problem
The text was updated successfully, but these errors were encountered: