You are here: FME Readers and Writers > Google KML Reader/Writer

Google KML Reader/Writer

The KML format is described in detail in the KML Documentation Introduction at http://code.google.com/apis/kml/documentation/. Users who want to create complex KML should familiarize themselves with the KML 2.2 specification that is available on Google's website: http://earth.google.com/kml.

The Google Earth KML Reader and Writer allow FME to read and write KML files. This chapter refers to the Reader and Writer as the KML Reader/Writer.

This KML overview is from the Open Geospatial Consortium (OGC®) KML 2.2 RFC:

“KML is an XML grammar used to encode and transport representations of geographic data for display in an earth browser. Put simply: KML encodes what to show in an earth browser, and how to show it. KML uses a tag-based structure with nested elements and attributes and is based on the XML standard.

The KML community is wide and varied. Casual users create KML Placemarks to identify their homes, describe journeys, and plan cross-country hikes and cycling adventures. Scientists use KML to provide detailed mappings of resources, models, and trends such as volcanic eruptions, weather patterns, earthquake activity, and mineral deposits. Real estate professionals, architects, and city development agencies use KML to propose construction and visualize plans. Students and teachers use KML to explore people, places, and events, both historic and current. Organizations such as National Geographic, UNESCO, and the Smithsonian have all used KML to display their rich sets of global data.

KML documents and their related images (if any) may be compressed using the ZIP format into KMZ archives. KML documents and KMZ archives may be shared by e-mail, hosted locally for sharing within a private internet, or hosted on a web server.”

Overview

The KML reader reads KML datasets that conform to the KML 2.0, 2.1, and 2.2 specifications. The KML Writer will write datasets that conform to the KML 2.2 specification. In addition the KML Writer also support’s writing Google’s ‘gx’ extensions to the KML 2.2 specification.

FME's KML support can be used without knowledge of the KML specification.

Users who want to create complex KML should familiarize themselves with the KML 2.2 specification that is available on Google's website: http://earth.google.com/kml.

Deprecation Advisory

FME created two plug-ins capable of reading and writing KML datasets: KML and OGCKML.

The KML plug-in is the original KML plug-in designed to read and write KML 2.0 datasets, and the OGCKML plug-in is designed to conform to the latest KML 2.2 specification.

The older KML plug-in is now deprecated. Translations using the older KML plug-in should be migrated to the new plug-in, which has many more features.