GML
filter
Writes a Feature object as GeoJSON.
>>> from geoscript.geom import Point >>> writeJSON(Feature({'geom':Point(1,1),'name':'one'},'1')) u'{"type":"Feature","geometry":{"type":"Point","coordinates":[1,1]},"properties":{"name":"one"},"id":"1"}'
Reads a Feature object from GeoJSON.
>>> readJSON('{"type":"Feature","geometry":{"type":"Point","coordinates":[1,1]},"properties":{"name":"one"},"id":"1"}') feature.1 {name: one, geometry: POINT (1 1)}