Skip to content
Cascading Sheets Of Style for Mapnik
Python
Find file
Pull request Compare This branch is 64 commits behind master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cascadenik
data
doc
openstreetmap
.gitignore
AUTHORS.txt
CHANGELOG.md
INSTALL.md
LICENSE.txt
MANIFEST.in
Makefile
README.md
VERSION.txt
cascadenik-compile.py
cascadenik-extract-dscfg.py
cascadenik-style.py
example.cfg
example.mml
example.mss
example_dscfg.mml
setup.py

README.md

Usage

See INSTALL.md for installation instructions.

See the doc/ folder for more usage examples.

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
Something went wrong with that request. Please try again.