[mapserver-users] Polygon border with marker line symbol

Anton Bakker anton.bakker at geocat.net
Wed Oct 11 08:45:01 PDT 2017


Hi list,

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 (https://i.imgur.com/9qN16tx.png <https://i.imgur.com/9qN16tx.png>). 

I tried the two following options, but could not manage to recreate the above symbology:

1. Renders with marker fill on polygon (https://i.imgur.com/sFFznbq.png <https://i.imgur.com/sFFznbq.png>):

	 CLASS
	    NAME "countries_europe"
	    STYLE
	      ANTIALIAS TRUE
	      COLOR 204 204 204
	    END
	    STYLE
	      ANTIALIAS TRUE
	      GAP 30
	      OUTLINECOLOR 0 0 0
	      COLOR 255 0 0 
	      SIZE 6
	      SYMBOL 'square'
	      WIDTH 1.0
	    END
	  END

2. Renders with marker line symbol on polygon border (https://i.imgur.com/Qwrw8wP.png <https://i.imgur.com/Qwrw8wP.png>), but the marker is missing the fill:

	 CLASS
	    NAME "countries_europe"
	    STYLE
	      ANTIALIAS TRUE
	      COLOR 204 204 204
	    END
	    STYLE
	      ANTIALIAS TRUE
	      GAP 30
	      OUTLINECOLOR 0 0 0
	      SIZE 6
	      SYMBOL 'square'
	      WIDTH 1.0
	    END
	  END

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. 

Thanks and kind regards,
Anton Bakker

software developer at geocat <http://www.geocat.net/> 
tel. +31 318 416 664 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171011/ea335783/attachment.html>


More information about the mapserver-users mailing list