[mapserver-users] Polygon border with marker line symbol

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Thu Oct 12 00:55:35 PDT 2017


Hi again,




As Håvard points out You need to draw the polygon twice.  I have extended the example to show that.

In a real world example You will substitute the inline FEATURE with a DATA statement.




The new example can be found here.





https://gist.github.com/LarsSchy/9b697cb02c0a4637512a1b1026069352





and the result is shown here:





https://i.imgur.com/z0yXKdh.png




Good luck




Lars Schylberg


-----Originalmeddelande----- 
> Från: "Håvard Tveite" <havard.tveite at nmbu.no> 
> Till: mapserver-users at lists.osgeo.org 
> Datum: 2017-10-11 23:21 
> Ämne: Re: [mapserver-users] Polygon border with marker line symbol 
> 
> 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
> > 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
 

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


More information about the mapserver-users mailing list