[mapserver-users] Labeling

Fawcett, David David.Fawcett at state.mn.us
Thu Mar 26 10:37:45 EDT 2009


It is always an option to create a string column and then populate it
with your numbers formatted the way that you want them to appear.  I am
sure that you realize this, but it is something that I have done in the
past.
 
David.

	-----Original Message-----
	From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay
Kapalczynski
	Sent: Thursday, March 26, 2009 9:14 AM
	To: 'mapserver-users at lists.osgeo.org'
	Subject: [mapserver-users] Labeling
	
	

	 

	Is there any way to eliminate the decimal places here...I looked
online but was unable to find anything.

	
	Thanks

	 

	The fields I am labeling are numeric...so I get this

	 

	3434.000000000000

	1232222.000000000000

	 

	I am looking to drop all the extra decimal places...

	 

	Or maybe set it to keep two

	 

	3434.00

	 

	THANKS

	 

	 

	 

	LAYER # Maple Grove Parcels

	                    NAME Parcel_Labels

	                    DATA './parcels.shp'

	                    STATUS DEFAULT

	                    TYPE annotation

	                    MAXSCALE 2000

	                    MINSCALE 100

	                    LABELITEM 'EMV_LAND'

	                

	                                

	                                LABELCACHE ON

	                     CLASS

	                       COLOR -1 -1 -1

	                       LABEL

	                                POSITION UC

	                                TYPE TRUETYPE

	                                FONT vera_sans

	                                MAXSIZE 7

	                                SIZE 7

	                                OFFSET 0 10

	                                MINSIZE 4

	                                #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/20090326/73d4ecfb/attachment.html


More information about the mapserver-users mailing list