Hi, just trying to help.<div>I used some trick with arrows than maybe can help you with some variation.</div><div>I use mapserver-5.X and the way it worked for me was a LINE type layer using a normal class (continous line) with an OVERLAYSYMBOL, using  a &quot;&gt;&quot; character.</div>
<div>Maybe changin some parameters like GAP may be useful to you.</div><div><br></div><div>This is my class on a TYPE LINE layer</div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>CLASS</div><div>
<span class="Apple-tab-span" style="white-space:pre">                        </span>NAME &quot;capa_tub&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>SYMBOL &quot;continous&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>SIZE 2</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>COLOR 6 79 167</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>OVERLAYSYMBOL &quot;arrow&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>OVERLAYSIZE 30</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>OVERLAYCOLOR 6 79 167</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>END</div><div><br></div><div>And my continous and arrow are</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SYMBOL</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>  NAME &quot;arrow&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>  TYPE TRUETYPE</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>  FONT arial</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>  CHARACTER &#39;&amp;#62;&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>  FILLED true</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>  ANTIALIAS true</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>  GAP -100</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END<span class="Apple-tab-span" style="white-space:pre">        </span></div></div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SYMBOL</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>NAME &quot;continous&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>TYPE ELLIPSE</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>POINTS 1 1 END</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END</div></div><div><br></div><div>Hope it helps.</div><div>Lluís</div>
<br><div class="gmail_quote">2011/9/27 Puneet Kishor <span dir="ltr">&lt;<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Sep 27, 2011, at 2:18 AM, Havard Tveite wrote:<br>
<br>
&gt; Have you seen:<br>
&gt;<br>
&gt; <a href="http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol" target="_blank">http://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol</a><br>

<br>
<br>
</div>Yup, seen and read it from end to end until my eyes glazed. Perhaps it is clear as crystal to the rest of the world, but I can&#39;t fathom anything there applicable to me. I am facing four problems --<br>
<br>
1. As I mentioned below, per the docs, I am supposed to be able to declare &quot;ANGLE AUTO&quot; in my STYLE definition. That simply does not work for me. I *have* to declare the angle the same as the angle of the stem of the arrow &quot;ANGLE [az]&quot; in order to get arrow heads headed in the same direction as the arrow stems.<br>

<br>
2. From the docs on GEOMTRANSFORM, &quot;end: produces the last point of the geometry. When used with ANGLE AUTO, it can for instance be used to render an arrowhead.&quot; Well, no... it is *not* producing the *last point of the geometry* as I understand it. Instead, it is producing the middle point of the geometry. And it sure as as I can see is not working with ANGLE AUTO (see #1 above).<br>

<br>
3. I have tried several variations on my arrow head to try shift its center, but I am failing to translate the information in the above document to be able to do it correctly.<br>
<br>
4. Perhaps most important: the length of the arrow is varying based on [rate]. In other words, I want only the stem to be shorter or longer, but the arrow head to be the same size, and to be at the &quot;end&quot; of the stem always. In fact, there are instances in which [rate] could be equal to zero. In those instances I don&#39;t want any arrow to be drawn at all.<br>

<br>
*** In other words, I want an arrow stem to be as long as the varying [rate], and if the stem has a length greater than zero then and only then do I want an arrow head at the end of the stem pointing in the same direction as the stem. ***<br>

<br>
I even tried using a truetype font symbol, but I get no image at all but no error as well.<br>
<br>
I even tried using a SYMBOL of TYPE pixmap pointing to an image of an arrow. I realize that if I could make that work, it would still be unsatisfactory because as MapServer would scale my arrow image, it would make the attached arrow head also larger, and that would look ugly. In any case, I couldn&#39;t get that to work as well... no image at all, but no error as well.<br>

<br>
Could be my compilation of MapServer was buggy, but I didn&#39;t see any compilation time errors, and other than the above oddities, it works quite well.<br>
<br>
$./mapserv -v<br>
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
I would love to know if my *** objective *** above can be accomplished with MapServer. If not, I would look at other workaround. I am currently rendering arrows using OpenLayers vector layer... it works quite well, but is slow... MapServer is much faster, and could be cached, hence my desire to use MapServer.<br>

<br>
Thanks.<br>
<div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; Hĺvard Tveite<br>
&gt;<br>
&gt; On 9/27/2011 4:12 AM, Puneet Kishor wrote:<br>
&gt;&gt; My arrows look like so --&gt;-- instead of ----&gt;  with declarations like so<br>
&gt;&gt;<br>
&gt;&gt;     SYMBOL<br>
&gt;&gt;         NAME &quot;vert-line&quot;<br>
&gt;&gt;         TYPE vector<br>
&gt;&gt;         POINTS<br>
&gt;&gt;             0 1<br>
&gt;&gt;             0 0<br>
&gt;&gt;         END<br>
&gt;&gt;     END<br>
&gt;&gt;<br>
&gt;&gt;      SYMBOL<br>
&gt;&gt;         NAME &quot;up&quot;<br>
&gt;&gt;         TYPE vector<br>
&gt;&gt;         POINTS<br>
&gt;&gt;             0 1<br>
&gt;&gt;             0.5 0<br>
&gt;&gt;             1 1<br>
&gt;&gt;         END<br>
&gt;&gt;     END<br>
&gt;&gt;<br>
&gt;&gt;     CLASS<br>
&gt;&gt;         STYLE<br>
&gt;&gt;             SYMBOL &#39;vert-line&#39;<br>
&gt;&gt;             ANGLE [az]<br>
&gt;&gt;             SIZE [rate]<br>
&gt;&gt;             COLOR 0 0 0<br>
&gt;&gt;             WIDTH 1<br>
&gt;&gt;         END<br>
&gt;&gt;         STYLE<br>
&gt;&gt;             SYMBOL &quot;up&quot;<br>
&gt;&gt;             ANGLE [az]<br>
&gt;&gt;             SIZE 5<br>
&gt;&gt;             GEOMTRANSFORM &quot;end&quot;<br>
&gt;&gt;             COLOR 0 0 0<br>
&gt;&gt;         END<br>
&gt;&gt;     END<br>
&gt;&gt;<br>
&gt;&gt; But, at least the arrow heads are aligned correctly. Because, if I use &quot;ANGLE auto&quot; as prescribed in the docs instead of &quot;ANGLE [az]&quot; as shown above, my arrows draw like so --^--. The heads are always pointed up, and are in the middle.<br>

&gt;&gt;<br>
&gt;&gt; Suggestions?<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div align="left">
<p align="left"><strong><b><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">Lluís Peinado</span></font></b></strong></p>
<p><strong><b><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA"></span></font></b></strong><em><i><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">Geodata Sistemas,SL.</span></font></i></em><font color="navy"><span style="color:navy" lang="CA"></span></font></p>

<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA"><a title="mailto:luis.peinado@geodata.es" href="mailto:luis.peinado@geodata.es" target="_blank">luis.peinado@geodata.es</a></span></font><font color="navy"><span style="color:navy" lang="CA"></span></font></p>

<p><font size="3" color="navy"><span style="color:navy;font-size:12pt" lang="CA"> </span></font></p>
<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">T. 933 035 367 
(ext. 21)</span></font><font color="navy"><span style="color:navy" lang="CA"></span></font></p>
<p><font size="2" color="navy"><span style="font-family:Arial;color:navy;font-size:10pt" lang="CA">F. 933 080 
071</span></font></p></div><br>
</div>