Updated MemoryDatasource (markdown)

drnextgis 2012-12-26 11:24:02 -08:00
parent b63947b91e
commit 79c66a8679

@ -9,7 +9,9 @@
A in-memory datasource. Sample usage: A in-memory datasource. Sample usage:
```python ```python
from mapnik2 import Feature, MemoryDatasource, Geometry2d import mapnik
ds = MemoryDatasource() ds = mapnik.MemoryDatasource()
ds.add_feature(Feature(1, Geometry2d.from_wkt("POINT(2 5)"), name="Alberto")) f = mapnik.Feature(mapnik.Context(), 1)
f.add_geometries_from_wkt("POINT(2 5)")
ds.add_feature(f)
``` ```