we don't render an offseted label if its leader line would intersect an existing label or an existing leader line. Try removing you label BUFFER so that there is more room for the leader lines to be drawn without intersecting the existing label's bbox.
-- thomas On 4 March 2014 17:09, aborruso <[email protected]> wrote: > Hi all, > I would like to render all the label of a polygon. I know that the only > solution I have for my geometries is to use LEADER. > > But I have some problems. If I do not set FORCE TRUE, the labels overlap > each other and I have no LEADER line. In the below image two results I have > with Mapserver, and a sketch of my goal. > > Is there a way to have a greater number of labels and leader lines? > > Below my layer setting. > > I'm using MapServer version 6.4.1 with GDAL 1.10.1, released 2013/08/26. > > Thank you very much, > > Andrea > > <http://osgeo-org.1560.x6.nabble.com/file/n5107466/2014-03-04_16h57_04.png> > > LAYER > CLASSITEM "Status" > CONNECTION "mappa_di_base.shp" > CONNECTIONTYPE OGR > FILTER ('[Status]' eq '3' OR '[Status]' eq '2' OR '[Status]' eq '1') > LABELITEM "ID" > METADATA > "coordsys_name" "Popular Visualisation CRS / Mercator (deprecated)" > END # METADATA > NAME "geo_32633" > STATUS ON > TEMPLATE "query" > TILEITEM "location" > TYPE POLYGON > UNITS METERS > CLASS > NAME "Note" > LABEL > ANTIALIAS TRUE > FONT "arial" > SIZE 10 > BUFFER 10 > OFFSET 0 0 > POSITION AUTO > SHADOWCOLOR 255 255 255 > SHADOWSIZE 0 0 > TYPE TRUETYPE > END # LABEL > LEADER > MAXDISTANCE 5000 > STYLE > COLOR 0 255 255 > WIDTH 2 > END # STYLE > END # LEADER > STYLE > ANTIALIAS TRUE > BACKGROUNDCOLOR 255 0 128 > COLOR 255 0 128 > OUTLINECOLOR 50 50 50 > SIZE 0 > WIDTH 2 > END # STYLE > TEMPLATE "query" > TITLE "" > END # CLASS > END # LAYER > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Force-label-rendering-without-overlapping-tp5107466.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
