Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

MemoryDatasource

drnextgis edited this page Dec 26, 2012 · 3 revisions

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)

Clone this wiki locally