<html>
<head><title></title></head>
<body><div class="iw_mail" dir="ltr">
<p style="margin:0;">Hi again,</p>
<p style="margin:0;"><br></p>
<p style="margin:0;">As Håvard points out You need to draw the polygon twice.  I have extended the example to show that.</p>
<p style="margin:0;">In a real world example You will substitute the inline FEATURE with a DATA statement.</p>
<p style="margin:0;"><br></p>
<p style="margin:0;">The new example can be found here.<br></p>
<p style="margin:0;"><br></p>
<p style="margin:0;"><a href="https://gist.github.com/LarsSchy/9b697cb02c0a4637512a1b1026069352">https://gist.github.com/LarsSchy/9b697cb02c0a4637512a1b1026069352</a><br></p>
<p style="margin:0;"><br></p>
<p style="margin:0;">and the result is shown here:<br></p>
<p style="margin:0;"><br></p>
<p style="margin:0;"><a href="https://i.imgur.com/z0yXKdh.png">https://i.imgur.com/z0yXKdh.png</a></p>
<p style="margin:0;"><br></p>
<p style="margin:0;">Good luck</p>
<p style="margin:0;"><br></p>
<p style="margin:0;">Lars Schylberg<br></p>
<br><div dir="ltr" style="font-size: 13px; font-family: Lucida Console,Courier New,Courier,Monospace;">-----Originalmeddelande-----<br>> Från: "Håvard Tveite" <<a href="mailto:havard.tveite@nmbu.no">havard.tveite@nmbu.no</a>><br>> Till: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> Datum: 2017-10-11 23:21<br>> Ämne: Re: [mapserver-users] Polygon border with marker line symbol<br>><br>> If you duplicate the layer, one of the layers (type polygon) can provide<br>> the polygon fill and the other (type line) the styled boundary.<br>><br>> Håvard<br>><br>> On 11. okt. 2017 17:45, Anton Bakker wrote:<br>> > Hi list,<br>> ><br>> > I am trying to create the following symbology in MapServer, a marker line symbol on the border of a polygon, see the following ArcMap screenshot (<a href="https://i.imgur.com/9qN16tx.png">https://i.imgur.com/9qN16tx.png</a> <<a href="https://i.imgur.com/9qN16tx.png">https://i.imgur.com/9qN16tx.png</a>>).<br>> ><br>> > I tried the two following options, but could not manage to recreate the above symbology:<br>> ><br>> > 1. Renders with marker fill on polygon (<a href="https://i.imgur.com/sFFznbq.png">https://i.imgur.com/sFFznbq.png</a> <<a href="https://i.imgur.com/sFFznbq.png">https://i.imgur.com/sFFznbq.png</a>>):<br>> ><br>> >       CLASS<br>> >          NAME "countries_europe"<br>> >          STYLE<br>> >            ANTIALIAS TRUE<br>> >            COLOR 204 204 204<br>> >          END<br>> >          STYLE<br>> >            ANTIALIAS TRUE<br>> >            GAP 30<br>> >            OUTLINECOLOR 0 0 0<br>> >            COLOR 255 0 0<br>> >            SIZE 6<br>> >            SYMBOL 'square'<br>> >            WIDTH 1.0<br>> >          END<br>> >        END<br>> ><br>> > 2. Renders with marker line symbol on polygon border (<a href="https://i.imgur.com/Qwrw8wP.png">https://i.imgur.com/Qwrw8wP.png</a> <<a href="https://i.imgur.com/Qwrw8wP.png">https://i.imgur.com/Qwrw8wP.png</a>>), but the marker is missing the fill:<br>> ><br>> >       CLASS<br>> >          NAME "countries_europe"<br>> >          STYLE<br>> >            ANTIALIAS TRUE<br>> >            COLOR 204 204 204<br>> >          END<br>> >          STYLE<br>> >            ANTIALIAS TRUE<br>> >            GAP 30<br>> >            OUTLINECOLOR 0 0 0<br>> >            SIZE 6<br>> >            SYMBOL 'square'<br>> >            WIDTH 1.0<br>> >          END<br>> >        END<br>> ><br>> > Does anyone know whether it is possible to achieve this symbology? It seems the only way to set a picture line symbol on the border of a polygon is to only set the outlinecolor, but then there is no way to set the fill color for the marker. I could not find any any information about this in the documentation or the mailing list.<br>> ><br>> > Thanks and kind regards,<br>> > Anton Bakker<br>> ><br>> > software developer@geocat <<a href="http://www.geocat.net/">http://www.geocat.net/</a>><br>> > tel. +31 318 416 664<br>> ><br>> ><br>> ><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="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><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="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</div>
<p style="margin:0;"><br></p>
<p style="margin:0;"><br></p>
<div class="signature">
<div class="separator">--</div>
<br> </div>
</div></body>
</html>