diff --git a/MemoryDatasource.md b/MemoryDatasource.md index 883a184..5b1e795 100644 --- a/MemoryDatasource.md +++ b/MemoryDatasource.md @@ -9,7 +9,9 @@ A in-memory datasource. Sample usage: ```python - from mapnik2 import Feature, MemoryDatasource, Geometry2d - ds = MemoryDatasource() - ds.add_feature(Feature(1, Geometry2d.from_wkt("POINT(2 5)"), name="Alberto")) + import mapnik + ds = mapnik.MemoryDatasource() + f = mapnik.Feature(mapnik.Context(), 1) + f.add_geometries_from_wkt("POINT(2 5)") + ds.add_feature(f) ``` \ No newline at end of file