[UMN_MAPSERVER-USERS] Limit of 1 label per polygon

Léveillé, James James.Leveille at MTQ.GOUV.QC.CA
Fri Oct 6 06:35:06 PDT 2006


Hi Stephen,

I didn't mean I actually had performance issues.
I just THOUGHT that the few calculations made by MapServer to check if more
than one label had to be placed in each polygon would be slower than
systematically placing only one label (less calculation). This is the reason
why I was asking.

Thanks.


__________________________________________
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)


-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Stephen Woodbridge
Envoyé : 6 octobre 2006 09:15
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : Re: [UMN_MAPSERVER-USERS] Limit of 1 label per polygon


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