advanced labelings

Todd Fagin tfagin at COORDINATESOLUTIONS.COM
Fri Oct 13 13:03:06 EDT 2006


Greetings all,

 

I am wanting to do some advanced labeling in MapServer and have several
questions.

 

First, if I want to label based on concatenated fields, but on two separate
lines. I know I can do something such as the following in my CLASS object:

 

TEXT ([QDNAME][INDEX_CODE]) 

 

This, of course, will return labels from both the QDNAME and INDEX_CODE
fields, but on a single line.

 

However, I would like to stake the labels on two lines, e.g.

 

QDNAME 

INDEX_CODE

 

Any suggestions on how to do this?

 

Secondly, I would like to be able to label based on a truncated field.  For
instance, I would like to have as my label field the first 5 characters of a
string, e.g., 

 

LEFT([QDNAME], 5)

 

Is there a way to do something along these lines without creating a new
field in my layer that only contains these characters?

 

Ultimately, my goal is to be able to stack a single label field into two
lines.  So, if my attribute value is 1000-5142, I would like my label to
look like:

 

1000-

5142.

 

Any suggestions or pointers would be greatly appreciated.  I have yet to
find anything in the archives that would assist me in this matter.

 

Thanks in advance.

 

Todd Fagin

 

Coordinate Solutions, Inc.

501 N.E. 15th St.

Oklahoma City, OK 73104

405.246.9396 (Voice)

405.227.0781 (Fax)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061013/ff76c7c4/attachment.html


More information about the mapserver-users mailing list