[mapserver-users] Labeling

Jay Kapalczynski jkapalczynski at ci.maple-grove.mn.us
Tue Aug 5 12:47:44 PDT 2008


Don't know if I have to correct location.

 

I have been successful labeling street centerlines using the ANGLE
FOLLOW in the .map File


This is being performed on a Shapefile Line feature

 

I also have a Polygon Feature that has a field that I am trying to
label....once again I need the text to follow the polygon 

As you can see from the image the road names a following properly, but
the labels for the polygons are not following...

I tried the ANGLE FOLLOW on the Polygon and It will not draw..

I tried ANGLE [Angle] with Angle being a field name that holds Degree
values (ex 270) does the field have to be numeric?

 

 

Is there some other syntax that I have to put in the map file that will
force the text to follow the Polygon?

 

THANKS

 

 

 

 

STREET MAP FILE

 

LAYER # Maple Grove Streets Name

                    NAME Streets_Labels

                    DATA './GEOCODED_CENTERLINES2.shp'

                    STATUS DEFAULT

                    TYPE annotation

                    MAXSCALE 6000

                    MINSCALE 100

                    LABELITEM 'STREET_NAM'

 

                                LABELCACHE ON

                     CLASS

                       COLOR -1 -1 -1

                       LABEL

                                TYPE TRUETYPE

                                FONT vera_sans

                                ANGLE FOLLOW

                                POSITION AUTO

                                MAXSIZE 10

                                SIZE 8

                                MINSIZE 8

                                ANTIALIAS TRUE

                                COLOR 0 0 0

                                OUTLINECOLOR 255 255 192

                                BUFFER 2

                       END

                     END

  END # Maple Grove Streets Name

 

PARCELS MAP FILE THAT DOES NOT WORK

 

                LAYER # Maple Grove Parcels

                    NAME Parcel_Labels

                    DATA './parcels.shp'

                    STATUS DEFAULT

                    TYPE annotation

                    MAXSCALE 2500

                    MINSCALE 100

                    LABELITEM 'TextString'

 

                   ANGLE [Angle]

                   POSITION AUTO

                   PARTIALS FALSE

                                

                                LABELCACHE ON

                     CLASS

                       COLOR -1 -1 -1

                       LABEL

                                TYPE TRUETYPE

                                FONT vera_sans

                                MAXSIZE 8

                                SIZE 8

                                MINSIZE 2

                                #ANTIALIAS TRUE

                                COLOR 0 0 0

                                OUTLINECOLOR 255 255 128

                                BUFFER 2

                       END

                     END

  END # Maple Grove Parcels

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080805/76b2ad09/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 46637 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080805/76b2ad09/attachment.jpg>


More information about the MapServer-users mailing list