3 MemoryDatasource
drnextgis edited this page 2012-12-26 11:24:02 -08:00

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)