<html>
<head><title></title></head>
<body><div class="iw_mail" dir="ltr">
<p style="margin:0;">Hi,<br><br>I guess that your symbol definition of square says filled false, it should be be filled true. Do another symbol.<br>Next thing is that if You would like to do fancy borders symbols along a polygon you could set LAYER - TYPE to line.<br>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><br>I made a small example to show this. Save this to line-with-squares.map and run it with:<br>shp2img -m line-square-test.map -o line-square-test.png<br><br>/Lars S.<br>_________________<br><br>MAP<br> SIZE 1000 1000<br> IMAGETYPE png24<br> EXTENT -30 -10 60 30<br> UNITS DD<br><br>SYMBOL<br> NAME "square_filled"<br> TYPE VECTOR<br> POINTS<br> 0 0<br> 0 1<br> 1 1<br> 1 0<br> 0 0<br> END<br> FILLED TRUE<br>END<br><br>LAYER # Simple polygon<br> STATUS DEFAULT<br> TYPE LINE<br> FEATURE<br> POINTS<br> 5 25<br> 25 20<br> 45 20<br> 35 15<br> 50 0<br> 0 5<br> 5 25<br> END # Points<br> END # Feature<br><br> CLASS <br> NAME "Symboltest"<br> STYLE<br> SYMBOL "square_filled"<br> COLOR 255 0 0<br> SIZE 12<br> INITIALGAP 15<br> GAP -30<br> OUTLINECOLOR 0 0 0<br> WIDTH 2.0<br> END #STYLE <br> END # CLASS<br>END # LAYER<br>END # MAP<br><br>---------------------------</p>
<br><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">-----Originalmeddelande-----<br>Från: "Anton Bakker" <<a href="mailto:anton.bakker@geocat.net">anton.bakker@geocat.net</a>><br>Till: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>Datum: 2017-10-11 17:45<br>Ämne: [mapserver-users] Polygon border with marker line symbol<br><br><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>_______________________________________________<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>
</blockquote>
<p style="margin:0;"><br></p>
<p style="margin:0;"><br></p>
<div class="signature">
<div class="separator">--</div>
<br> </div>
</div></body>
</html>