[Geomoose-users] Want to label predefined text before
field attribute
Jim Dahl
jim.dahl at mail.co.douglas.mn.us
Wed Dec 15 14:55:35 EST 2010
Brent, there are probably many ways to construct the map file for
labels, the way I have it appears to work!
THANKS!
LAYER # Parcels Label Layer
NAME parcellabels
DATA parcels
STATUS DEFAULT
TYPE ANNOTATION
LABELCACHE on
# LABELITEM 'TORRENS'
# TEXT (T-[TORRENS])
MAXSCALE 30000
LABELMAXSCALE 20000
CLASS
TEXT (T-[TORRENS])
EXPRESSION ([TORRENS] > 0)
LABEL
OFFSET 0 10
TYPE TRUETYPE
FONT arial
# ANGLE FIELDNAME
ANGLE FOLLOW
# ANGLEITEM FIELDNAME
MINSIZE 6
SIZE 12
MAXSIZE 20
POSITION CC
ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 254 254 254
BUFFER 2
MINFEATURESIZE AUTO
PARTIALS FALSE
END
END
END # Parcels Label Layer
-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com]
Sent: Wednesday, December 15, 2010 1:47 PM
To: Jim Dahl
Cc: Geomooselist
Subject: Re: [Geomoose-users] Want to label predefined text
before field attribute
Jim,
Try using
TEXT (T-[my_field])
inside the CLASS object (instead of the LABEL object's
LABELITEM) in your mapserver map file.
Best Regards,
Brent Fraser
On 12/15/2010 12:36 PM, Jim Dahl wrote:
I have a shape file with a field that I am labeling on.
It is numeric and I would like to add a letter in front of it. I want
to put letter T- in front of the data 1234. How can I do this?
thanks,
Jim Dahl, GISP
GIS Coordinator
Douglas County Public Works
526 Willow Dr
PO Box 398
Alexandria MN 56308
V 320-762-2933
320-762-2999
F 320-762-2998
------------------------------------------------------------------------
------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20101215/6a58069d/attachment.html
More information about the Geomoose-users
mailing list