OGC GML v2.1.2 (Geography Markup Language) Reader/Writer

Licensing options for this format begin with FME Desktop Professional Edition.

The GML2 modules enables FME to read and write files in Geography Markup Language (GML) format.

This chapter assumes familiarity with GML.


GML is an OpenGIS® Implementation Specification. The GML specification defines an XML encoding for the transport and storage of geographic information. This specification can be found at the Open GIS Consortium website www.opengeospatial.org.

GML documents must be instances of a conforming application schema. Conforming application schemas are to be defined with the W3C’s XML Schema language.

Writer Overview

The GML2 writer currently writes out GML instance documents in two different modes. The mode of operation is controlled by the Schema Mode parameter.

The character encoding for the output XML documents may also be specified with the Output Encoding parameter. When this is not specified, the output encoding defaults to UTF-8.