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 Oct 17 '19 at 20:16
  • I forgot to wrap it inside <Rule></Rule> – nauti Oct 17 '19 at 22:24

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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