<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Lars,<div class=""><br class=""></div><div class="">The fill of the square was set to true, but I guess that is what happens when you only set the OUTLINECOLOR and a SYMBOL on a polygon type style. </div><div class=""><br class=""></div><div class="">In any case setting the type of the polygon layer to LINE did the trick. I was not aware this was possible, but it does make sense. Thanks for the quick answer!</div><div class=""><br class=""></div><div class="">Kind regards,</div><div class="">Anton </div><div class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On 11 Oct 2017, at 18:50, <a href="mailto:lars.schylberg@blixtmail.se" class="">lars.schylberg@blixtmail.se</a> wrote:</div><br class="Apple-interchange-newline"><div class="">
<title class=""></title>
<div class=""><div class="iw_mail" dir="ltr"><div style="margin: 0px;" class="">Hi,<br class=""><br class="">I guess that your symbol definition of square says filled false,  it should be be filled true. Do another symbol.<br class="">Next thing is that if You would like to do fancy borders symbols along a polygon you could set LAYER - TYPE  to line.<br class="">The syntax becomes easier.  Last thing is to get the symbols to rotate with the line you should set gap to a negative value.<br class=""><br class="">I made a small example to show this.  Save this to line-with-squares.map and run it with:<br class="">shp2img -m line-square-test.map -o line-square-test.png<br class=""><br class="">/Lars S.<br class="">_________________<br class=""><br class="">MAP<br class="">  SIZE 1000 1000<br class="">  IMAGETYPE png24<br class="">  EXTENT -30 -10 60 30<br class="">  UNITS DD<br class=""><br class="">SYMBOL<br class="">    NAME "square_filled"<br class="">    TYPE VECTOR<br class="">    POINTS<br class="">        0 0<br class="">        0 1<br class="">        1 1<br class="">        1 0<br class="">        0 0<br class="">    END<br class="">    FILLED TRUE<br class="">END<br class=""><br class="">LAYER  # Simple polygon<br class="">  STATUS DEFAULT<br class="">  TYPE LINE<br class="">  FEATURE<br class="">    POINTS<br class="">      5 25<br class="">      25 20<br class="">      45 20<br class="">      35 15<br class="">      50 0<br class="">      0 5<br class="">      5 25<br class="">    END # Points<br class="">  END # Feature<br class=""><br class="">  CLASS <br class="">        NAME "Symboltest"<br class="">        STYLE<br class="">            SYMBOL "square_filled"<br class="">            COLOR 255 0 0<br class="">            SIZE 12<br class="">            INITIALGAP 15<br class="">            GAP -30<br class="">            OUTLINECOLOR 0 0 0<br class="">            WIDTH 2.0<br class="">        END  #STYLE   <br class="">    END # CLASS<br class="">END # LAYER<br class="">END # MAP<br class=""><br class="">---------------------------</div>
<br class=""><blockquote class="reply_block" dir="ltr" style="border-left: 2px solid #0088CC; margin: 5pt 0 5pt 10pt; padding: 0 0 0 5pt; font-size: 13px; font-family: roboto,tahoma,helvetica,sans-serif;">
<hr size="1" class="">-----Originalmeddelande-----<br class="">Från: "Anton Bakker" <<a href="mailto:anton.bakker@geocat.net" class="">anton.bakker@geocat.net</a>><br class="">Till: <a href="mailto:mapserver-users@lists.osgeo.org" class="">mapserver-users@lists.osgeo.org</a><br class="">Datum: 2017-10-11 17:45<br class="">Ämne: [mapserver-users] Polygon border with marker line symbol<br class=""><br class=""><div class="">Hi list,</div>
<div class=""><br class=""></div>
<div class="">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" class="">https://i.imgur.com/9qN16tx.png</a>). </div>
<div class=""><br class=""></div>
<div class="">I tried the two following options, but could not manage to recreate the above symbology:</div>
<div class=""><br class=""></div>
<div class="">1. Renders with marker fill on polygon (<a href="https://i.imgur.com/sFFznbq.png" class="">https://i.imgur.com/sFFznbq.png</a>):</div>
<div class=""><br class=""></div>
<div class="">CLASS</div>
<div class="">   NAME "countries_europe"</div>
<div class="">   STYLE</div>
<div class="">     ANTIALIAS TRUE</div>
<div class="">     COLOR 204 204 204</div>
<div class="">   END</div>
<div class="">   STYLE</div>
<div class="">     ANTIALIAS TRUE</div>
<div class="">     GAP 30</div>
<div class="">     OUTLINECOLOR 0 0 0</div>
<div class="">     COLOR 255 0 0 </div>
<div class="">     SIZE 6</div>
<div class="">     SYMBOL 'square'</div>
<div class="">     WIDTH 1.0</div>
<div class="">   END</div>
<div class=""> END</div>
<div class=""><br class=""></div>
<div class="">2. Renders with marker line symbol on polygon border (<a href="https://i.imgur.com/Qwrw8wP.png" class="">https://i.imgur.com/Qwrw8wP.png</a>), but the marker is missing the fill:</div>
<div class=""><br class=""></div>
<div class="">CLASS</div>
<div class="">   NAME "countries_europe"</div>
<div class="">   STYLE</div>
<div class="">     ANTIALIAS TRUE</div>
<div class="">     COLOR 204 204 204</div>
<div class="">   END</div>
<div class="">   STYLE</div>
<div class="">     ANTIALIAS TRUE</div>
<div class="">     GAP 30</div>
<div class="">     OUTLINECOLOR 0 0 0</div>
<div class="">     SIZE 6</div>
<div class="">     SYMBOL 'square'</div>
<div class="">     WIDTH 1.0</div>
<div class="">   END</div>
<div class=""> END</div>
<div class=""><br class=""></div>
<div class="">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. </div>
<div class=""><br class=""></div>
<div class="">Thanks and kind regards,</div>
<div class="">Anton Bakker</div>
<div class=""><br class=""></div>
<div class="">
<div class="">
<div class="">software developer@<a href="http://www.geocat.net/" class="">geocat</a> </div>
<div class="">tel. +31 318 416 664 </div>
</div>
<div class=""><br class=""></div>
<br class="Apple-interchange-newline">
</div>
<br class=""><hr class="">_______________________________________________<br class="">mapserver-users mailing list<br class=""><a href="mailto:mapserver-users@lists.osgeo.org" class="">mapserver-users@lists.osgeo.org</a><br class=""><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" class="">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</blockquote><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class=""><br class=""></div>
<div class="signature">
<div class="separator">--</div>
<br class=""> </div>
</div></div>


</div></blockquote></div><br class=""></div></body></html>