MemoryDatasource

drnextgis edited this page Dec 26, 2012 · 3 revisions
Clone this wiki locally

MemoryDatasource

New in 0.8 (aka mapnik2)

A in-memory datasource. Sample usage:

    import mapnik
    ds = mapnik.MemoryDatasource()
    f = mapnik.Feature(mapnik.Context(), 1)
    f.add_geometries_from_wkt("POINT(2 5)")
    ds.add_feature(f)