[mapserver-users] How avoid overlapping of label between two distinct layers

Andrea Peri aperi2007 at gmail.com
Tue Aug 9 05:06:54 PDT 2016


Hi,
I need to avoid the overlapping of labels between two layers.

To do this I try to set the BUFFER option in both layers, but I see it
seem don't work as I expected.
Perhaps the buffer is working only for label of same layers ?

This is a sample of actual overlapping:

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt&STYLES=default%2Cdefault&CRS=EPSG%3A25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image%2Fpng&BBOX=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872&WIDTH=824&HEIGHT=267

In both layers I set:
    LABELCACHE on
   ...
  LAYER
   ...
    CLASS
     .....
      LABEL
        TEXT 'Sottoambito [sottoambit]'
        TYPE TRUETYPE
        BUFFER 5
       ....

Thx.


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the mapserver-users mailing list