[mapserver-users] Polygon labeling

Thomas Campitelli tomcampitelli at yahoo.com
Thu Mar 27 20:51:41 EDT 2008


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://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080327/9ec12522/attachment-0001.html


More information about the mapserver-users mailing list