mapnik/demo/python
Artem Pavlenko 8328424af5 1. datasource is now a property of Layer object.
2. modified python/c++ demos to reflect the above.
3. removed large 'blobby' mapnik.hpp (compilation times!!!)
2006-10-03 08:44:04 +00:00
..
README.txt - Remove the python interpreter from the script, have the user supply it instead 2006-03-22 02:41:13 +00:00
rundemo.py 1. datasource is now a property of Layer object. 2006-10-03 08:44:04 +00:00

# $Id$

This directory contains a sample python script implementing the Mapnik API.

The script is thoroughly commented and also acts as a mini tutorial.  Reading
it should get you on your way, and you can use it as a base for your work.

You must compile and install mapnik and the python bindings FIRST.

Once this is done, run it:

/path/to/python rundemo.py

If all goes well, it should render 2 map images:

demo.jpg
demo.png

Have a look!

Cheers,
J.F.