<div dir="ltr"><div><div>Thanks Havard, for the pointer to the answer and explanation of the ratio between SIZE and GAP. I feel like I will use that a lot.<br><br></div>Thanks Thomas for your clarification - my misunderstanding was regarding the negative values, I hadn't fully  internalized that y=0 was the top of the symbol.<br>
<br></div>Tanya<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 12:24 AM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Given that there's alot of undefined behavior with vector symbols, the<br>
documentation for anchorpoint is pretty clear about what is supported:<br>
<quote><br>
ANCHORPOINT can be used with SYMBOLs of TYPE ellipse, pixmap, svg,<br>
truetype and vector. To ensure proper behaviour for vector symbols,<br>
the left and top edges of the bounding box of the symbol should be at<br>
0.<br>
</quote><br>
As a rule of thumb, VECTOR symbols are expected to work correctly if<br>
they respect that rule, i.e. your vector POINTS should have at least<br>
one point with x=0, at least one point with y=0, and no negative x's<br>
or y's.<br>
<br>
--<br>
thomas<br>
<div class="HOEnZb"><div class="h5"><br>
On 29 August 2013 09:05, Havard Tveite <<a href="mailto:havard.tveite@umb.no">havard.tveite@umb.no</a>> wrote:<br>
> The implementation of GAP has been fixed (center to center<br>
> distance between symbols), and so has the calculation of<br>
> symbol height.<br>
> I guess that the following should work:<br>
><br>
><br>
> STYLE<br>
>   SYMBOL "wavy_line"<br>
>   WIDTH 1<br>
>   SIZE 2<br>
>   GAP -6<br>
><br>
>   COLOR 0 0 0<br>
> END<br>
><br>
> Since you have y values from -1 to 1, and x values between 0<br>
> and 6, the ratio between the height of your symbol and the<br>
> length is 2 / 6.  The ratio between size and gap should be the<br>
> same to make the the line continuous.<br>
><br>
> Håvard<br>
><br>
><br>
> On 8/29/2013 1:31 AM, TC Haddad wrote:<br>
>><br>
>><br>
>> Hello, I'm trying to understand symbol orientation and (maybe) use of<br>
>> ANCHORPOINT on a line in Mapserver 6.2.<br>
>><br>
>> The vector symbol that I have been using for line cartography in MapServer<br>
>> 6.0.3 is below, and I am trying to get the same effect in Mapserver 6.2.1.<br>
>><br>
>> SYMBOL<br>
>>    NAME "wavy_line"<br>
>>    TYPE vector<br>
>>    POINTS<br>
>>      0 0<br>
>>      1 1<br>
>>      2 1<br>
>>      3 0<br>
>>      4 -1<br>
>>      5 -1<br>
>>      6 0<br>
>>    END<br>
>> END<br>
>><br>
>> Display in Mapserver 6.0.3:<br>
>> <a href="https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png" target="_blank">https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png</a><br>
>><br>
>> Relevant Style bloc from Mapserver 6.0.3:<br>
>><br>
>> STYLE<br>
>>       SYMBOL "wavy_line"<br>
>>       WIDTH 1<br>
>>       SIZE 2<br>
>>       GAP -1<br>
>>       COLOR 0 0 0<br>
>> END<br>
>><br>
>> This did not translate directly to Mapserver 6.2.1, but I came close with<br>
>> this:<br>
>><br>
>> STYLE<br>
>>      SYMBOL "wavy_line"<br>
>>       WIDTH 1<br>
>>       SIZE 4<br>
>>       GAP 6<br>
>>       COLOR 0 0 0<br>
>> END<br>
>><br>
>> which produced this:<br>
>> <a href="https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png" target="_blank">https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png</a><br>
>><br>
>> Obviously I am missing something about how to get the symbol to orient<br>
>> along the line, I played with ANCHORPOINT as that  was new in 6.2 and it<br>
>> seemed like the default of 0.5 0.5  should work for my symbol, but I also<br>
>> tried several other value combinations and it seemed to merely shift the<br>
>> symbol around laterally, while maintaining an upright orientation.<br>
>><br>
>> So I'm a bit confused on how to achieve the original effect, (behavior<br>
>> something like the equivalent of FOLLOW for Labels). Any pointers<br>
>> appreciated...<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>
> Håvard Tveite<br>
> Department of Mathematical Sciences and Technology, UMB<br>
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY<br>
> Phone: <a href="tel:%2B47%2064965483" value="+4764965483">+47 64965483</a> Fax: <a href="tel:%2B47%2064965401" value="+4764965401">+47 64965401</a> <a href="http://www.umb.no/imt/" target="_blank">http://www.umb.no/imt/</a><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>
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></div></div></blockquote></div><br></div>