Rotating labels

Stephen Lime steve.lime at dnr.state.mn.us
Tue Mar 20 08:26:19 PST 2001


You'll have to modify the source for now. Edit the msAddLabel function 
in maplabel.c to change the angle as it's put in the cache. Should be
an easy hack.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Michael Schulz <mschulz at webgis.de> 03/20/01 09:33AM >>>
Dear List,

i am drawing an annotation that is rotated according to a field in the
dbf-file (with LABELANGLEITEM). It seems these rotation-values have been
computed for a rotation in a counter clockwise sense, but Mapserver
rotates it in the opposite direction.

Is there a possibilty to recalculate this angle value on-the-fly or with
an expression in the map-file (e.g. (360 - [ANGLE_ITEM]), or would i
have to change something in the source code (if so, Steve, could you
tell me where and what to look for?) ?

Thanks, Michael

--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz at webgis.de                             www.webgis.de 








More information about the MapServer-users mailing list