I see that mapserver 5.2.1 has the ability to draw labels
at angles with the

 LABEL
  ..blah blah...
  ANGLE "[rotation]"
 END


Can I put an expression in that rotation column?  When I try
doing something like this:
      LABEL
        MINFEATURESIZE 75
        COLOR  255 255 255
        OUTLINECOLOR 255 0 0
        TYPE truetype
        ANTIALIAS TRUE
        FONT arial-bold
        SIZE 8
        PARTIALS FALSE
        POSITION CC
        buffer 0
        ANGLE 
[(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))),(x(endpoint(the_geom))-x(startpoint(the_geom)))))]
      END

it's giving me an error suggesting that this expression is
not the name of a column in my table.

With mapserver 4.4.1 I was able to write labels at angles with
an expression like this:

 LABELANGLEITEM 
"(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))),(x(endpoint(the_geom))-x(startpoint(the_geom)))))"

Is there any way I can get mapserver 5.2.1 to not try to quote the
ANGLE for the label?

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to