KML Data Display Project

This was a KML (Keyhole Markup Language) self-education exercise. KML is a form of XML used to convey geographic information and allow visualisation on maps and Earth browsers such as Google Earth.

The aim was to gain an understanding of KML and create a working and valid KML document.

With many websites collecting and mapping weather data from PWS around the world, it was a simple choice to develop an experimental data exchange format to visualise our weather data in Google Earth. It was intended that our PWS software would be programmed to automatically generate the KML document at regular intervals.

Development was a three stage process:

  1. Match variables with the required station details and weather data,
  2. Create a KML document to transfer the station details and weather data, and
  3. Create a template file culminating from the previous two stages.


The variables used in this project are listed below. Select a variable to view the complete XML element definition, including: the element name and description, the expected data type, the permitted values where explicitly defined, and whether the element is mandatory or optional.

The variables in the template file are replaced with the equivalent output tags from the PWS software. If a variable has no equivalent output tag from the PWS software, the options are to: (1) create a user-defined output tag for the PWS software containing the appropriate value, or (2) replace the variable in the template file with the appropriate value. If an optional variable is permanently unavailable, the line in the template file containing the variable is deleted.

Top of page up arrow

Template File

Download template (right click on the link and select "Save link as"): data display template.

Project Status

See a live example using the KML Data Display Document. This document is routinely generated for personal interest only.

This 2017 project is inactive.

Google Earth desktop
Presentation of data from a KML Data Display Document in Google Earth

Top of page up arrow