top of page

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.


0 vue0 commentaire

Posts récents

Voir tout
bottom of page