Openstreetmap-carto: Parking label placement

Created on 8 Jul 2018  路  9Comments  路  Source: gravitystorm/openstreetmap-carto

Expected behavior

I expect the "P" label to be within the boundary of the parking area.

Actual behavior

For obscure shapes of parking area, "P" label can be misleadingly outside the boundary of the area.

Links and screenshots illustrating the problem

Link to affected area

The fix for this may be simply invoking code you already have that is used on other objects, or it could be complex and very resource intensive. If the latter then I intend to break the car parking up into two adjoining areas (I know this gives a better, but sub-optimal, result, even if it's tagging for the renderer). If the former then I'll leave it as is.

duplicate

All 9 comments

Thanks for the bug report.

This is a duplicate of #1456 #1465 which is a Mapnik issue solved in https://github.com/mapnik/mapnik/issues/3558 and is pending for installation on openstreetmap.org (may take some weeks or months until deployed). Closing.

Erm, call me dense but I don't understand how #1456 is remotely similar to this. Superficially they look like very different problems.

This isn't a layering problem as such, it's a the "P" is in the wrong location problem. Fixing things so the "P" is underneath the building hides the problem, it doesn't fix it. It would still be a problem if that building weren't there, it just wouldn't be so obviously a problem.

This style (openstreetmap-carto) requests to the rendering engine (Mapnik) to place the labels and icons within the multipolygons (that鈥檚 exactly the same thing for parking areas, lagoons, building, highway areas, forests all other types of multipolygons). Mapnik didn鈥檛 do this correctly: There was a bug in Mapnik. The bug in Mapnik has been fixed in the meantime, but on openstreetmap.org the servers still use the old Mapnik version that has the bug. They are currently doing an update for the servers, so this issue should be fixed soon.

@eehpcm just for info - I have a rendering server covering that area with an updated Mapnik version and the "P" occurs as expected in the car park.

Erm, call me dense but I don't understand how #1456 is remotely similar to this. Superficially they look like very different problems.

I think sommerluk referenced the wrong issue. #1465 is probably the right one :-)

@HolgerJeromin

Yeah, I think so too. I've made worse typos, though. :)

@SomeoneElseOSM
If you're who I think you are, that must be a different server from the one of yours I know about. That one still has the P in the wrong place. And still uses a chair as the icon for a glazier.

Still, it means the problem will be fixed on OSM if it's fixed in your mapnik renderer.

I think sommerluk referenced the wrong issue. #1465 is probably the right one :-)

Indeed.

@HolgerJeromin Thanks for the comment!

@eehpcm Sorry for inconvenience.

If you're who I think you are, that must be a different server from the one of yours I know about.

Yes - different server. The public one is Ubuntu 16.04 and an older version of Mapnik; the less public one is Ubuntu 18.04 and a newer Mapnik. Same map style on both.

And still uses a chair as the icon for a glazier.

(apologies in advance for offtopic diversion but) that's actually a design decision to reduce the total number of icons in use. As ever, pull requests welcome :)

Was this page helpful?
0 / 5 - 0 ratings