<div dir="ltr"><div><div><div><div><div>Hi Thomas.<br></div>It work very well.<br><br></div>I tried to define a symbol with two segment: one perpendicolar to the other.<br></div><div><br></div>Instead more simple was to create an only one segment perpendicular to the outline.<br>
<br></div>Many thx,<br><br></div>Andrea.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/11 thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andrea, the example I gave you does exactly that.<br>
<a href="https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20" target="_blank">https://github.com/mapserver/msautotest/blob/master/renderers/line_anchorpoint.map#L20</a><br>
, just remove the first style's COLOR if you don't want a fill.<br>
<br>
--<br>
thomas<br>
<div class="HOEnZb"><div class="h5"><br>
On 11 August 2013 14:37, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Sorry, I forgot to explain my need.<br>
><br>
> I need to define an outline of polygon with an perpendicular segment forward<br>
> the internal of polygon.<br>
> It goal is to allow to use only the outline (no internal fill) and also help<br>
> the user to distinguish the internal and the external part of a polygon when<br>
> the scale is bigger and the polygon is not all in the screen.<br>
><br>
> The problem is that the symbol don't start exactly from the outpline but a<br>
> little <a href="http://before.as" target="_blank">before.as</a> it was moved.<br>
><br>
> Andrea.<br>
><br>
><br>
><br>
><br>
> 2013/8/11 thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>><br>
>><br>
>> As you're not showing what you would like to obtain, nor the mapfile<br>
>> you are using to generate those images it is difficult to be of much<br>
>> help. I have added a test in<br>
>><br>
>> <a href="https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f" target="_blank">https://github.com/mapserver/msautotest/commit/89d59a49586dc3192dfd2f67bd1a751f0900e36f</a><br>
>> that mimics what I guess you would like to obtain, and for me shows<br>
>> that anchorpoint seems to be working as expected.<br>
>><br>
>> --<br>
>> thomas<br>
>><br>
>> On 11 August 2013 13:07, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> > thx for response.<br>
>> ><br>
>> > I try to set this symbol:<br>
>> ><br>
>> ><br>
>> > SYMBOL<br>
>> > NAME "test"<br>
>> > TYPE vector<br>
>> > FILLED TRUE<br>
>> > POINTS<br>
>> > 0.0 0.0<br>
>> > 1.0 0.0<br>
>> > 0.5 0.0<br>
>> > 0.5 0.5<br>
>> ><br>
>> > END<br>
>> > ANCHORPOINT 0.0 0.0<br>
>> > END<br>
>> ><br>
>> > But mapserver seem move the line by 0.5.<br>
>> ><br>
>> > I show in the attached image (img1) the problem.<br>
>> > The filled green is the real polygon.<br>
>> > Instead the red is the symbol I try to define with "test".<br>
>> > As you can see the red line is not in the exact outline but 0.5 moved.<br>
>> ><br>
>> > I notice also that if I define this other kind of symbol:<br>
>> ><br>
>> > SYMBOL<br>
>> > NAME "chiodo"<br>
>> ><br>
>> > TYPE vector<br>
>> > FILLED TRUE<br>
>> > POINTS<br>
>> > 0.0 0.0<br>
>> > 1.0 0.0<br>
>> > 0.5 0.0<br>
>> > # 0.5 0.5<br>
>> ><br>
>> > END<br>
>> > ANCHORPOINT 0.0 0.0<br>
>> > END<br>
>> ><br>
>> > Where I comment the perpendicul segment,<br>
>> > the result is a red line exactly on the outline.<br>
>> > I show this in the img2 attacched.<br>
>> ><br>
>> > So mapserver seem move the symbol when there is a perpendicular segment.<br>
>> ><br>
>> > Is this a bug or I don't understand how work the symbols ?<br>
>> ><br>
>> > Thx,<br>
>> ><br>
>> > Andrea.<br>
>> ><br>
>> ><br>
>> ><br>
>> > 2013/8/11 thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>><br>
>> >><br>
>> >> try defining the points of your vector symbol such that min(x)=min(y)=0<br>
>> >><br>
>> >> On 11 August 2013 10:30, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
>> >> > Hi,<br>
>> >> ><br>
>> >> > I'm having trouble try.ing use the anchorpoint with a vector symbol.<br>
>> >> ><br>
>> >> > Is this working with vectors ?<br>
>> >> ><br>
>> >> > This is what I'm try to do:<br>
>> >> ><br>
>> >> > SYMBOL<br>
>> >> > NAME "test"<br>
>> >> > TYPE vector<br>
>> >> > FILLED TRUE<br>
>> >> > POINTS<br>
>> >> > 0.5 1.0<br>
>> >> > 0.5 0.75<br>
>> >> > 0.0 0.75<br>
>> >> > 1.0 0.75<br>
>> >> > END<br>
>> >> > ANCHORPOINT 0.0 0.0<br>
>> >> > END<br>
>> >> ><br>
>> >> > The anchorpoint seem always set to the 0.5 0.5 position.<br>
>> >> ><br>
>> >> > I'm use the trunk version of mapserver.<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > -----------------<br>
>> >> > Andrea Peri<br>
>> >> > . . . . . . . . .<br>
>> >> > qwerty àèìòù<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>
>> ><br>
>> > --<br>
>> > -----------------<br>
>> > Andrea Peri<br>
>> > . . . . . . . . .<br>
>> > qwerty àèìòù<br>
>> > -----------------<br>
><br>
><br>
><br>
><br>
> --<br>
> -----------------<br>
> Andrea Peri<br>
> . . . . . . . . .<br>
> qwerty àèìòù<br>
> -----------------<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>