[mapserver-users] Polygon labeling

Thomas Campitelli tomcampitelli at yahoo.com
Thu Mar 27 21:12:38 EDT 2008


Many thanks for the response. However, it still did not fix this issue. It just puts the label directly on one of the border lines. I suspect that I need to include the county boundaries as a polygon layer and label them. I will see if that gets me anywhere.

----- Original Message ----
From: "tchaddad at gmail.com" <tchaddad at gmail.com>
To: Thomas Campitelli <tomcampitelli at yahoo.com>
Sent: Thursday, March 27, 2008 7:06:18 PM
Subject: Re: [mapserver-users] Polygon labeling


Try:

POSITION CC


-----Original Message-----
From: Thomas Campitelli <tomcampitelli at yahoo.com>

Date: Thu, 27 Mar 2008 17:51:41 
To:mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Polygon labeling


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








      ____________________________________________________________________________________
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/f927d13a/attachment.html


More information about the mapserver-users mailing list