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

Licensing options for this format begin with FME Professional Edition.

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

This chapter assumes familiarity with GML.

Additional GML Formats

Note that the following format is a GML format, and its documentation is considered part of the GML Reader/Writer documentation:

  • OS (GB) MasterMap Reader

Overview

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 value of the SCHEMA_MODE directive:

  • FIXED: In this mode, the GML2 writer produces instance documents that conform to the FMEFeatures.xsd schema. The FMEFeatures.xsd file can found under the {FME installed dir}/xfMap folder.
  • CREATE: In this mode, the GML2 writer creates two GML documents – a GML application schema and a GML instant document that conforms to this schema.
  • SCAN: This mode is not yet implemented.

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.