Hi.<br><br>I&#39;m not sure if I understand what you are trying to do, but if I&#39;m right you need to draw a &gt; symbol over your lines in the direction of the line. If this is what you want you must define a SYMBOL and set it to your line. The trick to get the symbol drawed along line direction is to set the symbol GAP with a negative value. By example:<br>
<br>SYMBOL<br>&nbsp; NAME &quot;arrow&quot;<br>&nbsp; TYPE truetype<br>&nbsp; FONT arialbd <br>&nbsp;<b> CHARACTER &#39;&amp;#187;&#39;</b><br>&nbsp; FILLED true<br>&nbsp; ANTIALIAS true<br>&nbsp; <b>GAP -100</b><br>END<br><br>where the -100 value represents that CHARACTER must be drawed in the direction of the line (the minus) and CHARACTER must be drawed with a GAP of 100 map units between each other (In my case, my map unit is meters, so there will not be two &gt; symbols for the same line in a radius of 100 meters).<br>
<br>Then you must use this symbol in your line layer definition as SYMBOL for your CLASS element. Something like:<br><br>LAYER<br>....................<br>&nbsp;&nbsp;&nbsp; &nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 255 255<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>SYMBOL &quot;arrow&quot;</b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE 15<br>&nbsp;&nbsp;&nbsp; &nbsp; END<br>.....................<br>END<br><br>I hope it works for you. Sorry my english.<br><br>Rodrigo.<br><br><div class="gmail_quote">
On Fri, Feb 29, 2008 at 3:06 PM, Adam Feidt &lt;<a href="mailto:afeidt@edenprairie.org">afeidt@edenprairie.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was hoping it could read ESRI&#39;s From and To node structure much like<br>
ArcMap, but by the sounds of it that isn&#39;t possible. Shapefile geometry<br>
is saved in the Shape column, which I&#39;m guessing is useless in<br>
Mapserver. &nbsp;What you&#39;re saying is I need to create an attribute and<br>
populate it with the angle of the line and use that to define my label<br>
direction?<br>
<div class="Ih2E3d"><br>
Adam M. Feidt<br>
GIS Coordinator<br>
City of Eden Prairie<br>
8080 Mitchell Rd<br>
Eden Prairie, MN 55344<br>
phone# 952-949-8443<br>
fax# 952-949-8334<br>
<br>
<br>
</div><div><div></div><div class="Wj3C7c">-----Original Message-----<br>
From: G. Allegri [mailto:<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>]<br>
Sent: Friday, February 29, 2008 8:57 AM<br>
To: Adam Feidt<br>
Cc: Fawcett, David; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] symbology showing line direction<br>
<br>
A question: how can you derive a line direction by a shp without<br>
having an appropriate attribute?<br>
<br>
Giovanni<br>
<br>
2008/2/29, Adam Feidt &lt;<a href="mailto:afeidt@edenprairie.org">afeidt@edenprairie.org</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; David,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;Below is my Layer definition. &nbsp;I&#39;ve tried a truetype symbol and<br>
label<br>
&gt; with the ANGLE parameter set to AUTO or FOLLOW. &nbsp;Neither case pointed<br>
out<br>
&gt; actual shapefile line direction. &nbsp;I&#39;m reading an ESRI shapefile so<br>
there is<br>
&gt; no specific column for line direction.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; LAYER<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Utilities Sanitary Lines&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATA &#39;./UtilitiesSanitaryLines.shp&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE LINE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STATUS DEFAULT<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASSITEM &quot;Function&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Main&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 85 255 0<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;plainline&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Low Pressure&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;Low Pressure&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 255 85 0<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;plainline&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Sub Trunk&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;Sub Trunk&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 85 255 0<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;plainline&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Trunk&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;Trunk&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 112 168 0<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;plainline&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Force Main&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;forcemain&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 255 170 0<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &#39;dashed1&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &#39;Private&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION &quot;private&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 161 33 240<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &#39;plainline&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END # end class<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; END #end layer<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Adam M. Feidt<br>
&gt;<br>
&gt; GIS Coordinator<br>
&gt;<br>
&gt; City of Eden Prairie<br>
&gt;<br>
&gt; 8080 Mitchell Rd<br>
&gt;<br>
&gt; Eden Prairie, MN 55344<br>
&gt;<br>
&gt; phone# 952-949-8443<br>
&gt;<br>
&gt; fax# 952-949-8334<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: Fawcett, David [mailto:<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>]<br>
&gt; &nbsp;Sent: Friday, February 29, 2008 8:19 AM<br>
&gt; &nbsp;To: Adam Feidt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;Subject: RE: [mapserver-users] symbology showing line direction<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Adam,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; What does your layer definition, with the classes look like?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Does your data have the direction column properly populated for all<br>
records?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; David.<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; &nbsp;From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf<br>
&gt; Of Adam Feidt<br>
&gt; &nbsp;Sent: Friday, February 29, 2008 8:14 AM<br>
&gt; &nbsp;To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;Subject: [mapserver-users] symbology showing line direction<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; I&#39;m working in a GeoMoose application and trying to display<br>
utility<br>
&gt; lines with the correct line direction via some arrow character or<br>
symbol.<br>
&gt; I&#39;ve had no luck so far. &nbsp;I&#39;ve successfully labeled my lines with a<br>
truetype<br>
&gt; font character by defining the TEXT &quot;&gt;&quot; parameter in the CLASS object.<br>
I&#39;ve<br>
&gt; also tried a pixelmap symbol definition using a .gif file. &nbsp;Both<br>
appear to<br>
&gt; work at first, but when you compare it to the actual line direction it<br>
isn&#39;t<br>
&gt; true in all cases. &nbsp;Has anybody found a way to accomplish this? &nbsp;I<br>
would<br>
&gt; appreciate if you could send me any examples.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Adam M. Feidt<br>
&gt;<br>
&gt; GIS Coordinator<br>
&gt;<br>
&gt; City of Eden Prairie<br>
&gt;<br>
&gt; 8080 Mitchell Rd<br>
&gt;<br>
&gt; Eden Prairie, MN 55344<br>
&gt;<br>
&gt; phone# 952-949-8443<br>
&gt;<br>
&gt; fax# 952-949-8334<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; &nbsp;mapserver-users mailing list<br>
&gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<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>