This Python code snippet demonstrates basic use of the proposed "PointDatasource" object exposed by the Mapnik patch attached here: http://trac.mapnik.org/ticket/113 To run this code, you will need to grab a copy of Mapnik from trunk, apply this patch, and also download the style.xml file below.