Dane Springmeyer wrote:
in the 'world_map.py' you created make sure you have the line:
from mapnik import *
Please don't encourage import * in python scripts. Python namespaces
are a wonderful thing -- let's use them.
Every single package I'm involved in that used to encourage import *,
Agree - splat-imports make it extremely difficult to understand
example code.
Here are (all?) the places on the wiki where they are used:
http://www.google.com/search?q=%22from+mapnik+import%22+site%3Atrac.mapnik.org%2Fwiki
It'd be worth fixing these, I've started with
I agree too.
Mike, thanks!
Chris, sorry to arrgh you :)
Dane
On Apr 1, 2009, at 12:43 PM, Michal Migurski wrote:
Agree - splat-imports make it extremely difficult to understand
example code.
Here are (all?) the places on the wiki where they are used:
Dane Springmeyer wrote:
On Apr 1, 2009, at 12:43 PM, Michal Migurski wrote:
It'd be worth fixing these, I've started with
http://trac.mapnik.org/wiki/GettingStarted
Thanks! Wikis in action.
Dane Springmeyer wrote:
Chris, sorry to arrgh you :)
Actually, the arrgh! was not about that -- it
Hey Klaus,
Welcome to Mapnik.
in the 'world_map.py' you created make sure you have the line:
from mapnik import *
at the top.
If you do have that line at the top of your script them post back the
result of doing this in a python interpreter:
from mapnik import Map
m = Map(600,300)
Let
5 matches
Mail list logo