Stephen Woodbridge wrote: > Since you seem to be doing this in postgis, I think the way to do thie > is something like this: > > DATA "the_geom from (select > (180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), >>> (x(endpoint(the_geom))-x(startpoint(the_geom))))) as angle, the_geom, > ... from table ...) as foo using ..." > > then you can do > > ANGLE [angle] > > to use the value as an attribute column.
Very nice! It works. Thanks much. _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
