GeoScript

Previous topic

feature.io

Next topic

JSON

This Page

GML

geoscript.feature.io.gml.writeGML(f, ver=2, format=True, bounds=False, xmldecl=False, nsprefix='gsf')

Writes a Feature object as GML.

ver specifies the gml version to encode. Supported versions include 2, 3, and 3.2.

format specifies whether to format or pretty print the result.

bounds specifies whether to include feature bounds in the result.

xmldecl specifies whether to include the XML declaration in the result.

nsprefix specifies the prefix to be mapped to the namespace uri for the feature schema.

geoscript.feature.io.gml.readGML(input, ver=2)

Reads a Feature from GML.

input is the GML to read specified as a str, file, or some other input stream.

ver specifies the gml version to encode. Supported versions include 2, 3, and 3.2.