<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>Long, long ago, I 
posted to this forum asking for guidance on drawing a point 
layer(</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2><A 
href="http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00562.html">http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00562.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>).&nbsp; Thanks to 
the help of the folks on this list, I was able to get the application 
working.&nbsp; First off, I created&nbsp;a layer for each symbol I wanted to 
use(in the mapfile, see below</FONT></SPAN><SPAN class=653531023-29062005><FONT 
face=Arial size=2>).&nbsp; The php app which uses the mapfile will create&nbsp;a 
new PointObj for each coordinate returned by a query, &nbsp;look up the name of 
the symbol layer associated with the gps source, then call PointObj-&gt;draw 
with the layer as an argument(see my equally inscrutable code fragment 
below).&nbsp; This works nicely for drawing dots on the map, however there is 
now a new twist.&nbsp; I would like to use triangular symbols in my layer, 
rotated relative to the point which follows.&nbsp; For instance, if the first 
coordinate was (1,1), and the second was (5,1), I would like to rotate the first 
symbol to the right by 90 degrees so that it is "pointing" at the second 
symbol.&nbsp; I think labels support this with the&nbsp;"angle" attribute, but I 
didn't find anything in the documentation indicating that points/symbols could 
be rotated in the same way.&nbsp; Any ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>A million 
thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>Kasey</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2># mapfile fragment: 
</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>&nbsp; #&nbsp;LAYER 
object</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>&nbsp; 
LAYER<BR>&nbsp;&nbsp;&nbsp; NAME "point_mapping-red"<BR>&nbsp;&nbsp;&nbsp; TYPE 
POINT<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; # CLASS 
object<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
"points_red"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 
"gps_coordinate-red"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # LABEL 
object<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION 
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
TINY<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE 
400<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINFEATURESIZE 
5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 255 
255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS 
FALSE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; 
END</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>// php 
fragment:</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
size=2>// retrieve associative array of gps coordinates</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
$point_array = $currObjUnit-&gt;get_gps_coordinates();</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;// loop through array<BR>&nbsp;&nbsp;&nbsp; 
foreach($point_array as $arPoints) {</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// get a new point 
object&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $pointObj_coord1 = 
ms_newPointObj();&nbsp;<BR></DIV></FONT></SPAN>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // set the X and&nbsp;Y 
coords<BR></FONT></SPAN><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
$pointObj_coord1-&gt;setXY($arPoints["longitude"], 
$arPoints["latitude"]);&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// $map is returned 
by ms_newMapObj()</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
$currObjUnit-&gt;get_unit_symbol retrieves the LAYER NAME attribute for the 
layer indicated in the unit config(ie "point_mapping-red" in this 
case)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $layerObj_imageSymbol = 
$map-&gt;getLayerByName($currObjUnit-&gt;get_unit_symbol());</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $class_index = 
0;</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // draw the 
point</FONT></SPAN></DIV>
<DIV><SPAN 
class=653531023-29062005>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
face=Arial size=2>// $map is a MapObj, $image is the image object 
returned&nbsp;by $map-&gt;draw</FONT><BR></SPAN><SPAN 
class=653531023-29062005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
$pointObj_coord1-&gt;draw($map, $layerObj_imageSymbol, $image, $class_index, 
'');&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
}</FONT></SPAN></DIV>
<DIV><SPAN class=653531023-29062005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>