Banner_2.png
[   RESOURCES   ]
VinzeroLogo_reverse.png

GeoServer – Offset Inner Lines

March 02, 2022 By David Crowther


Question:

How can I style a polygon to show the inside boundary of a property?


Answer:

Follow the GeoServer SLD cookbook to find all the polygon styling options - https://docs.geoserver.org/stable/en/user/styling/sld/cookbook/polygons.html


One of those styles is called Offset Inner Lines and it looks like this, where there is a Black Polygon Symboliser and a Grey Line Symboliser that is offset inside the polygon.

Simply copy the SLD code into your GeoServer Style file:

In my case I changed the colours to use red for the Stroke Colour

….and then for added affect, I have removed the Polygon Symboliser and just left the Line Symboliser, so the Style now looks like this:

When applied to my Planning Applications WMS and viewed in our webGIS – MapThat – the planning applications are styled with a line that is offset inside the object, to create the desired legal property boundary.


homepage_bg.jpg
[   VINZERO. RETHINK & LEVERAGE   ]

Explore our Think Community.

VinZero's Think Future Podcast

Coming Soon!

See how other companies are working towards net zero

Case studies and blogs featuring VinZero in Action around the globe

Live webinars that allow you to learn at a time that suits you

Create your own Think Folder of favourite resources