• Blog posts

    Bio

    By David Crowther

    GeoServer___Offset_Inner_Lines_-_1.png

    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.

    GeoServer___Offset_Inner_Lines_-_2.png

    Simply copy the SLD code into your GeoServer Style file:

    GeoServer___Offset_Inner_Lines_-_3.png

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

    GeoServer___Offset_Inner_Lines_-_4.png

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

    GeoServer___Offset_Inner_Lines_-_5.png

    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.

    GeoServer___Offset_Inner_Lines_-_6.png