Updated MemoryDatasource (markdown)
parent
d323cc9b41
commit
e2ea311bd1
1 changed files with 3 additions and 4 deletions
|
@ -8,9 +8,8 @@
|
|||
|
||||
A in-memory datasource. Sample usage:
|
||||
|
||||
|
||||
#!python
|
||||
|
||||
```python
|
||||
from mapnik2 import Feature, MemoryDatasource, Geometry2d
|
||||
ds = MemoryDatasource()
|
||||
ds.add_feature(Feature(1, Geometry2d.from_wkt("POINT(2 5)"), name="Alberto"))
|
||||
```
|
Loading…
Reference in a new issue