[mapserver-users] force labels to fit in polygons

2012-03-05 Thread Mark Volz
Hello, Is there a way to force labels to fit inside of a polygon, even if a polygon is irregularly shaped? I noticed that with POSITION AUTO labels are falling outside of my soils boundary. Thanks Mark Volz GIS Specialist ___ mapserver-users mail

Re: [mapserver-users] force labels to fit in polygons

2012-03-05 Thread Stephen Woodbridge
On 3/5/2012 4:44 PM, Mark Volz wrote: Hello, Is there a way to force labels to fit inside of a polygon, even if a polygon is irregularly shaped? I noticed that with POSITION AUTO labels are falling outside of my soils boundary. The short answer is no. It is an interesting problem, but it does n

Re: [mapserver-users] force labels to fit in polygons

2012-03-06 Thread Patricio Gigoux
You could generate a center point, there is a function that do it in irregular shaped, and fit the label in it Patricio Gigoux El 05-03-2012 18:50, Stephen Woodbridge escribió: > On 3/5/2012 4:44 PM, Mark Volz wrote: >> Hello, >> Is there a way to force labels to fit inside of a polygon, even

Re: [mapserver-users] force labels to fit in polygons

2012-03-06 Thread Stephen Woodbridge
Right, the problem has two parts: 1) determine potential candidate label points 2) see if the label fits given the constraints placed on how to draw it This is NP hard problem because it not just a problem of labeling a single polygon you also have to deal with all the other labels on the map