[mapserver-users] Polygon border with marker line symbol

Håvard Tveite havard.tveite at nmbu.no
Wed Oct 11 14:21:29 PDT 2017


If you duplicate the layer, one of the layers (type polygon) can provide
the polygon fill and the other (type line) the styled boundary.

Håvard

On 11. okt. 2017 17:45, Anton Bakker wrote:
> 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
> 
> 
> 
> 
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list