Limit of 1 label per polygon

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Fri Oct 6 09:14:53 EDT 2006


MINDISTANCE is exactly the tag you need for this, that is why it is 
here. If you have a performance problem than tell us about that. What 
makes you think MINDISTANCE would be slower than any other tag.

-Steve W.

Léveillé wrote:
> 
> Hi,
>  
> I have a layer of polygons. How can I make sure I have only one label 
> per polygon ???
> I know there is a MINDISTANCE tag - which probably add overhead for 
> calculation.
> Is there another tag that might be faster ?
>  
> Thanks
> Regards
>  
>  
> Here is my layer :
>  
> # ==================================================
> # Municipalité XYZ
> # ==================================================
>  
>   LAYER
>  
>     NAME                  "municipalite"
>     PROJECTION
>       "init=epsg:42105"
>     END
>     METADATA
>       "wms_title"         "Municipalité"
>       "wms_name"          "Municipalité"
>     END
>     STATUS                ON
>     DUMP                  TRUE
>  
>     EXTENT                30000 75000 1700000 2120000
>     MAXSCALE              250000
>     MINSCALE              1
>     TYPE                  POLYGON
>  
>     DATA                  "bgr_v_muncp_genrl_act/bgr_v_muncp_genrl_act"
>  
>     LABELMAXSCALE         250000
>     LABELMINSCALE         1
>  
>     CLASS
>       OUTLINECOLOR        137 175 137
>       TEXT                ([NOM_MUNCP])
>       LABEL
>         TYPE              TRUETYPE
>         FONT              "arial"
>         SIZE              8
>         COLOR             137 175 137
>         OUTLINECOLOR      255 255 255
>         POSITION          CC
>       END
>  
>     END
>  
>   END
>  
> __________________________________________
> *James Léveillé*
>  
> *Intélec Géomatique*
> 420, boul. Charest Est
> Bureau 400
> Québec (QC), Canada
> G1K 8M4
>  
> Intélec Géomatique: 418.687.5000
> MTQ: 418.380.2005 (#227)
>  



More information about the mapserver-users mailing list