I have been tasked to produce a styled polygon in geoserver similar to a style found in mapinfo :-
No fill but with an inward facing triangle as a border (see below)
Is this possible using sld ? I can’t find any examples of anything similar

Mark Ismail
Principal IT Officer
Tel: 0151 443 3021
Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL
Save time – use the IT Service Desk Self Serve Application
On Thu, May 22, 2014 at 12:10 PM, Ismail, Mark
<mark.ismail@anonymised.com>wrote:
I have been tasked to produce a styled polygon in geoserver similar to a
style found in mapinfo :-
No fill but with an inward facing triangle as a border (see below)
Is this possible using sld ? I can’t find any examples of anything similar
It should be doable, see this example, but use triangle as the mark name,
and play with the mark rotation to orient it the direction you want:
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#spaced-graphic-symbols
Cheers
Andrea
--
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Hi Andrea
It does work up to a point, the triangle is pointed the correct way and colour etc is fine
The problem is the size – if I put the size to anything above 7 the polygon disappears size 7 is barely distinguishable as a triangle
<?xml version="1.0" encoding="ISO-8859-1"?>
Dash - symbol and space
SLD Cook Book: Dash/Space line
Action Areas
triangle
#FF66CC
#000000
1
7
4 6
Mark Ismail
Principal IT Officer
Tel: 0151 443 3021
Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL
Save time – use the IT Service Desk Self Serve Application

···
From: andrea.aime@…84… [mailto:andrea.aime@…84…] On Behalf Of Andrea Aime
Sent: 22 May 2014 11:39
To: Ismail, Mark
Cc: geoserver mailing list (geoserver-users@lists.sourceforge.net)
Subject: Re: [Geoserver-users] Custom polygon linie style
On Thu, May 22, 2014 at 12:10 PM, Ismail, Mark <mark.ismail@…6440…> wrote:
I have been tasked to produce a styled polygon in geoserver similar to a style found in mapinfo :-
No fill but with an inward facing triangle as a border (see below)
Is this possible using sld ? I can’t find any examples of anything similar
![]()
It should be doable, see this example, but use triangle as the mark name,
and play with the mark rotation to orient it the direction you want:
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#spaced-graphic-symbols
Cheers
Andrea
–
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Thu, May 22, 2014 at 1:49 PM, Ismail, Mark
<mark.ismail@anonymised.com>wrote:
Hi Andrea
It does work up to a point, the triangle is pointed the correct way and
colour etc is fine
The problem is the size – if I put the size to anything above 7 the
polygon disappears size 7 is barely distinguishable as a triangle
You have to adjust the dasharray accordingly, the "pen down" part of the
dash array spec needs to be as large as the symbol
Cheers
Andrea
--
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------