[mapserver-dev] Label placement issue

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Wed Oct 7 08:25:24 PDT 2015


Do you have some sample data to play with?

________________________________
From: mapserver-dev-bounces at lists.osgeo.org [mapserver-dev-bounces at lists.osgeo.org] on behalf of Tamas Szekeres [szekerest at gmail.com]
Sent: Tuesday, October 06, 2015 5:36 PM
To: mapserver-dev at lists.osgeo.org
Subject: [mapserver-dev] Label placement issue

Hi,

It looks like the label placement it not working very well if we need to place labels on polygons that are long thin rectangles orientated on an angle. See the attachment as an example, where each polygon should have a single label at the center of the polygon.

The problem is related to the implementation of msPolygonLabelPoint in mapprimitive.c<https://github.com/mapserver/mapserver/blob/branch-7-0/mapprimitive.c> where some kind of adjustment is happening when the label falls near to the polygon boundaries.

Do we have a workaround to this problem or shouldn't we have an option to switch this correction off in the label definition?

Best regards,

Tamas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20151007/cfe6b3b0/attachment.html>


More information about the mapserver-dev mailing list