WFS

class vectorformats.Formats.WFS.WFS(*args, **kwargs)

WFS-like GML writer.

geometry_to_gml(geometry)
>>> w = WFS()
>>> print w.geometry_to_gml({'type':'Point', 'coordinates':[1.0,2.0]})
<gml:Point><gml:coordinates>1.0,2.0</gml:coordinates></gml:Point>
>>> w.geometry_to_gml({'type':'LineString', 'coordinates':[[1.0,2.0],[2.0,1.0]]})
'<gml:LineString><gml:coordinates>1.0,2.0 2.0,1.0</gml:coordinates></gml:LineString>'

Previous topic

OSM

Next topic

WKT

This Page