Opened 10 years ago

Closed 7 years ago

#1534 closed defect (wontfix)

area label positioning

Reported by: kaerast Owned by: mapnik-team@…
Priority: major Milestone:
Component: mapnik Version:
Keywords: Cc: skyper

Description

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).

Change History (4)

comment:1 Changed 9 years ago by steve8@…

  • Owner changed from steve8@… to mapnik-team@…

comment:2 Changed 7 years ago by skyper

  • Cc skyper added

comment:3 Changed 7 years ago by Michael Zajac

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.

comment:4 Changed 7 years ago by Ldp

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.