cascadenik is a Python module that implements cascading stylesheets for Mapnik. It's an abstraction layer and preprocessor that converts special, CSS-like syntax into Mapnik-compatible style definitions. It's easier to write complex style rules using the alternative syntax, because it allows for separation of symbolizers and provides a mechanism for inheritance. Unroll the rules in example.mss and show their cascade order: % cascadenik-style.py example.mss > example-ordered-unrolled.mss Compile example.mml into a Mapnik-suitable XML file: % cascadenik-compile.py example.mml > example-compiled.xml Render a MML file directly to an image using nik2img.py: % nik2img.py example.mml example.png Requirements: