artemp/trac2github — Issue #460: Declarative constructors in python
Author: artemp
Created: 2011-10-09 20:35:22+00:00
State: open
Labels: Boost_Python_Binding

from: http://lists.berlios.de/pipermail/mapnik-users/2009-April/001877.html

"""
2. Heavier use of keyword args in constructors. I've put all possible
symbolizer parameters for the few that I've made into the
constructors, which removes the situation in the wiki GettingStarted
page where it's necessary to instantiate an object and then perform
further changes to it to get it all working. In particular, it should
be possible to populate a mapnik.Map object with style and layer
information in an entirely declarative fashion, as shown in this test
from cascadenik:
http://code.google.com/p/mapnik-utils/source/browse/branches/cascadenik-xmlbad/test.py#1519
"""