<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Can you please clarify to me what you mean by data that is oriented?
When I built the road layer from GPS data, I added polylines starting
from point A-&gt;...-&gt;B and recorded all the inflections in the road
between A and B.<br>
By ordered data you mean the direction in this case is A-&gt;B?<br>
If I wanted to reverse the direction I'd have to write the data to the
shapefile in the order B-&gt;A?<br>
<br>
Thanks<br>
<br>
thomas bonfort wrote:
<blockquote
 cite="mid:d2b988930811100328s5626836ctc71ad70fab406e4b@mail.gmail.com"
 type="cite">
  <pre wrap="">it's the direction of the underlying geometry that's used.
so you either need
* data that's oriented, and a single boolean filed indicating if its
oneway or not,
* or an unoriented geometry, and a field indicating if the oneway
direction is reversed or not wrt the geometry (and two directional
symbols, one with &gt; , the other with &lt;)

cheers,
thomas

On Mon, Nov 10, 2008 at 12:01, Adrian Popa <a class="moz-txt-link-rfc2396E" href="mailto:adrian_gh.popa@romtelecom.ro">&lt;adrian_gh.popa@romtelecom.ro&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello Thomas,

Thank you very much for your tip! It's great.
However, I have a question: How can I select the direction of the arrow? I
mean, between A and B I have a road segment:

A----------------B

Right now, it renders as A----&gt;----&gt;-----&gt;-----B, but I want it to render as
A----&lt;------&lt;-----&lt;------B.

My question is: how does mapserver select the order of A and B? If I
understand this, I can create another symbol and use it for the reverse
path.

Thanks,
Adrian

thomas bonfort wrote:

Hi,

for repeated arrow symbols, you can use a truetype (or image, or
vector) symbol, with a negative GAP:

SYMBOL
 NAME oneway
 TYPE TRUETYPE
 CHARACTER '&gt;'
 FONT arial
 GAP -20
END

and then in your layer:

STYLE
 SYMBOL oneway
 SIZE 8
 COLOR 0 0 0
END

cheers,
thomas

On Mon, Nov 10, 2008 at 10:51, Adrian Popa <a class="moz-txt-link-rfc2396E" href="mailto:adrian_gh.popa@romtelecom.ro">&lt;adrian_gh.popa@romtelecom.ro&gt;</a>
wrote:


Hello everybody,

I have a map that displays roads stored in a polyline format. I would like
to mark one-way streets with an arrow symbol drawn on top of the road
itself. The symbol can be as small as possible (for beginning I would like
to be able to superimpose it anywhere between the street ends, and later on
I will lock it to be next to one of the ends).

I can already select the one way streets based on the following template:

  CLASS

     Name "OneWay"

     EXPRESSION
/^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/
     STYLE

        COLOR 255 0 0

        WIDTH 4

     END

     LABEL

         COLOR 0 0 255

         TYPE TRUETYPE

         FONT arial

         SIZE 8

     ANTIALIAS TRUE


         POSITION AUTO


         ANGLE AUTO
         PARTIALS TRUE


         MINDISTANCE 0


         BUFFER 0       END


 END

Can you show me an example of how to draw such a symbol on top of the layer?
Thank you

Adrian

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>





--
Adrian Popa

Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP &amp; Metro
Compartiment IP Core


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Adrian Popa

Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP &amp; Metro
Compartiment IP Core

</pre>
</body>
</html>