- Remove the python interpreter from the script, have the user supply it instead

- Add a little README.txt
This commit is contained in:
Jean-Francois Doyon 2006-03-22 02:41:13 +00:00
parent 8678bc54c4
commit 6914187e0b
2 changed files with 30 additions and 2 deletions

22
demo/python/README.txt Normal file
View file

@ -0,0 +1,22 @@
# $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.

View file

@ -1,5 +1,5 @@
#!/usr/bin/python2.3
# $Id$
#
# This file is part of Mapnik (c++ mapping toolkit)
# Copyright (C) 2005 Jean-Francois Doyon
#
@ -294,3 +294,9 @@ m.zoom_to_box(Envelope(7622019.99659767, 2966323.17001496, 7909470.44644348, 275
render_to_file(m, 'demo.png', 'png')
render_to_file(m, 'demo.jpg', 'jpeg')
print """\n\nTwo maps have been rendered in the current directory:
- demo.jpg
- demo.png
Have a look!\n\n"""