Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

area label positioning #1534

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

area label positioning #1534

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: kaerast
[Submitted to the original trac issue database at 5.22pm, Tuesday, 27th January 2009]

Mapnik shouldn't place labels in a multipolygon hole or within building objects inside an area. See http://www.openstreetmap.org/?lat=53.812977&lon=-1.77304&zoom=18&layers=B000FFFT for the location which brought this to my attention. The bandstand looks like it is called Lister Park whereas it is infact the entire park which is called Lister Park.

Alternatively, the wiki suggests that relation role=label could be used to solve this, but isn't supported in Mapnik (it is in osmarender, but that's rendering correctly anyway).

@openstreetmap-trac
Copy link
Author

Author: Michael Zajac
[Added to the original trac issue at 6.01am, Monday, 31st October 2011]

Not only not in a hole, but the label should be positioned within the polygon. In the case of concave curvilinear shapes, such as riverside parks, the label is sometimes rendered in a place that has no visual connection to the labelled item at all.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 8.38pm, Thursday, 8th March 2012]

In this particular case, it's just that the bandstand is in the exact center of the park. Not much can be done about this in the rendering. You are correct when you say the mapnik rendering doesn't support role=label. Not that it couldn't, but nobody has built support for it in the import tools yet.

Concave labeling should be okay now.

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

No branches or pull requests

1 participant