My data consists of a lot of polygons which need to be outlined. Unfortunately I cannot find any option on the PolygonSymbolizer - and my LineSymbolizer seems to be without effect. Here is my stylesheet with the important parts being in ll3-4:

<Map background-color="transparent">
    <Style name="productStyle1">
        <LineSymbolizer stroke="#000000" stroke-width="10" stroke-linejoin="round" stroke-linecap="round"/>
        <PolygonSymbolizer fill-opacity="1" fill="#868CFF"/>
    <Layer name="productlayer">

Is it not possible to draw outlines on polygons in Mapnik?

  • I cannot find what's wrong with your mapnik xml. It is indeed possible to combine LineSymbolizer, PolygonSymbolizer and even others symbolizers in the same style.
    – juminet
    Commented Oct 17, 2019 at 20:16
  • I forgot to wrap it inside <Rule></Rule>
    – nauti
    Commented Oct 17, 2019 at 22:24

1 Answer 1


I forgot to wrap it inside <Rule></Rule> attribute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.