Keyhole Markup Language

From Wikipedia, the free encyclopedia

KML (Keyhole Markup Language) is an XML-based language for managing three-dimensional geospatial data in the program Google Earth, Google Maps and Google Mobile. (The word Keyhole is an earlier name for the software that became Google Earth. The company that produced it was bought by Google.)

The KML file specifies a set of features (placemarks, images, polygons, 3D models, textual descriptions, etc.) for display in Google Earth, Maps and Mobile. Each place always has a longitude and a latitude. Other data can make the view more specific, such as tilt, heading, altitude, which together define a "camera view". KML shares some of the same structural grammar as GML[1]. Some KML information cannot be viewed in Google Maps or Mobile [2].

KML files are very often distributed as KMZ files, which are zipped KML files with a .kmz extension. When a KMZ file is unzipped, a single "doc.kml" is found along with any overlay and icon images referenced in the KML.

Example KML document:

 <?xml version="1.0" encoding="UTF-8"?>
 <kml xmlns="http://earth.google.com/kml/2.0">
 <Placemark>
   <description>New York City</description>
   <name>New York City</name>
   <Point>
     <coordinates>-74.006393,40.714172,0</coordinates>
   </Point>
 </Placemark>
 </kml>

[edit] See also

[edit] External links

In other languages