[mapserver-users] Polygon labeling

Stephen Woodbridge woodbri at swoodbridge.com
Thu Mar 27 22:10:15 EDT 2008


Try TYPE POLYGON instead.

Thomas Campitelli wrote:
> 
> Howdy Folks,
> 
> I would like to label the polygons in my map, however none of the labels 
> seem to fall within my polygons. Instead, they are labeled outside of 
> each shape. I am displaying the polygons as lines in the map. Is that my 
> problem? If so, how do I get around it. I have no wish to fill my 
> polygons with color. Thanks in advance for any help. The relevant 
> portion of my map file is shown below:
> 
> LAYER # Counties polygon layer begins here
>      
>             NAME         CountyLine
>             DATA         pgn_ca_county
>             STATUS       DEFAULT
>             TYPE         LINE
>            
>         LABELITEM    "Name"
>            
>            
>          CLASS
>             NAME       "County Boundary"
>             STYLE
>               COLOR        0 115 76
>               WIDTH        1
>             END
>          
>          
>                   LABEL                # Labeling Test
>                     COLOR 132 31 31
>                     #SHADOWCOLOR 218 218 218
>                     #SHADOWSIZE 2 2
>                     TYPE TRUETYPE
>                     FONT arial
>                     SIZE 8
>                     ANTIALIAS TRUE
>                     POSITION AUTO
>                     PARTIALS FALSE
>                     MINDISTANCE 200
>                     BUFFER 4
>             END    
>         END
>     END
> 
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now. 
> <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>  >
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list