Hi.<br><br>I'm not sure if I understand what you are trying to do, but if I'm right you need to draw a > 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> NAME "arrow"<br> TYPE truetype<br> FONT arialbd <br> <b> CHARACTER '»'</b><br> FILLED true<br> ANTIALIAS true<br> <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 > 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> STYLE<br> ANTIALIAS TRUE<br> COLOR 255 255 255<br>
OUTLINECOLOR 0 0 0<br> <b>SYMBOL "arrow"</b><br> SIZE 15<br> 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 <<a href="mailto:afeidt@edenprairie.org">afeidt@edenprairie.org</a>> 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's From and To node structure much like<br>
ArcMap, but by the sounds of it that isn't possible. Shapefile geometry<br>
is saved in the Shape column, which I'm guessing is useless in<br>
Mapserver. What you'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 <<a href="mailto:afeidt@edenprairie.org">afeidt@edenprairie.org</a>>:<br>
><br>
><br>
><br>
><br>
> David,<br>
><br>
> Below is my Layer definition. I've tried a truetype symbol and<br>
label<br>
> with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed<br>
out<br>
> actual shapefile line direction. I'm reading an ESRI shapefile so<br>
there is<br>
> no specific column for line direction.<br>
><br>
><br>
><br>
> LAYER<br>
><br>
> NAME 'Utilities Sanitary Lines'<br>
><br>
> DATA './UtilitiesSanitaryLines.shp'<br>
><br>
> TYPE LINE<br>
><br>
> STATUS DEFAULT<br>
><br>
> CLASSITEM "Function"<br>
><br>
> CLASS<br>
><br>
> NAME 'Main'<br>
><br>
> EXPRESSION ""<br>
><br>
> STYLE<br>
><br>
> COLOR 85 255 0<br>
><br>
> SYMBOL "plainline"<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> CLASS<br>
><br>
> NAME 'Low Pressure'<br>
><br>
> EXPRESSION "Low Pressure"<br>
><br>
> STYLE<br>
><br>
> COLOR 255 85 0<br>
><br>
> SYMBOL "plainline"<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> CLASS<br>
><br>
> NAME 'Sub Trunk'<br>
><br>
> EXPRESSION "Sub Trunk"<br>
><br>
> STYLE<br>
><br>
> COLOR 85 255 0<br>
><br>
> SYMBOL "plainline"<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> CLASS<br>
><br>
> NAME 'Trunk'<br>
><br>
> EXPRESSION "Trunk"<br>
><br>
> STYLE<br>
><br>
> COLOR 112 168 0<br>
><br>
> SYMBOL "plainline"<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> CLASS<br>
><br>
> NAME 'Force Main'<br>
><br>
> EXPRESSION "forcemain"<br>
><br>
> STYLE<br>
><br>
> COLOR 255 170 0<br>
><br>
> SYMBOL 'dashed1'<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> CLASS<br>
><br>
> NAME 'Private'<br>
><br>
> EXPRESSION "private"<br>
><br>
> STYLE<br>
><br>
> COLOR 161 33 240<br>
><br>
> SYMBOL 'plainline'<br>
><br>
> SIZE 2<br>
><br>
> END<br>
><br>
> END # end class<br>
><br>
> END #end layer<br>
><br>
><br>
><br>
><br>
><br>
><br>
> Adam M. Feidt<br>
><br>
> GIS Coordinator<br>
><br>
> City of Eden Prairie<br>
><br>
> 8080 Mitchell Rd<br>
><br>
> Eden Prairie, MN 55344<br>
><br>
> phone# 952-949-8443<br>
><br>
> fax# 952-949-8334<br>
><br>
><br>
><br>
><br>
><br>
> From: Fawcett, David [mailto:<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>]<br>
> Sent: Friday, February 29, 2008 8:19 AM<br>
> To: Adam Feidt; <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>
><br>
><br>
><br>
><br>
> Adam,<br>
><br>
><br>
><br>
><br>
><br>
> What does your layer definition, with the classes look like?<br>
><br>
><br>
><br>
><br>
><br>
> Does your data have the direction column properly populated for all<br>
records?<br>
><br>
><br>
><br>
><br>
><br>
><br>
> David.<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf<br>
> Of Adam Feidt<br>
> Sent: Friday, February 29, 2008 8:14 AM<br>
> To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Subject: [mapserver-users] symbology showing line direction<br>
><br>
> I'm working in a GeoMoose application and trying to display<br>
utility<br>
> lines with the correct line direction via some arrow character or<br>
symbol.<br>
> I've had no luck so far. I've successfully labeled my lines with a<br>
truetype<br>
> font character by defining the TEXT ">" parameter in the CLASS object.<br>
I've<br>
> also tried a pixelmap symbol definition using a .gif file. Both<br>
appear to<br>
> work at first, but when you compare it to the actual line direction it<br>
isn't<br>
> true in all cases. Has anybody found a way to accomplish this? I<br>
would<br>
> appreciate if you could send me any examples.<br>
><br>
><br>
><br>
><br>
><br>
> Adam M. Feidt<br>
><br>
> GIS Coordinator<br>
><br>
> City of Eden Prairie<br>
><br>
> 8080 Mitchell Rd<br>
><br>
> Eden Prairie, MN 55344<br>
><br>
> phone# 952-949-8443<br>
><br>
> fax# 952-949-8334<br>
><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>
><br>
><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>