Skip to content
ThomasG77 edited this page Dec 28, 2011 · 2 revisions

MemoryDatasource

New in 0.8 (aka mapnik2)

A in-memory datasource. Sample usage:

    from mapnik2 import Feature, MemoryDatasource, Geometry2d
    ds = MemoryDatasource()
    ds.add_feature(Feature(1, Geometry2d.from_wkt("POINT(2 5)"), name="Alberto"))
Clone this wiki locally