Skip to main content

Module gml

Module gml 

Source
Expand description

Geography Markup Language (GML) reader and writer.

This module targets practical GML Simple Features interoperability:

  • gml:FeatureCollection with gml:featureMember / gml:member
  • Geometries: Point, LineString, Polygon, Multi*, GeometryCollection
  • Coordinates from gml:pos, gml:posList, or gml:coordinates
  • Attributes as either <gv:attr name="..." type="...">...</gv:attr> (the form written by this module) or plain non-GML child elements.

Functionsยง

parse_str
Parse a GML string into a Layer.
read
Read a GML file into a Layer.
to_string
Serialize a Layer to a GML string.
write
Write a Layer as GML to a file.