Keyhole Markup Language
From Wikipedia, the free encyclopedia
Keyhole Markup Language | |
---|---|
File name extension | .kml, .kmz |
Internet media type | application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz |
Developed by | Keyhole, Inc., Google |
Type of format | Geographic Information System |
Extended from | XML |
Keyhole Markup Language (KML) is an XML-based language schema for expressing geographic annotation and visualization on existing or future Web-based, two-dimensional maps and three-dimensional Earth browsers. KML was developed for use with Google Earth, which was originally named Keyhole Earth Viewer. It was created by Keyhole, Inc, which was acquired by Google in 2004. The name "Keyhole" is an homage to the KH reconnaissance satellites, the original eye-in-the-sky military reconnaissance system first launched in 1976.
Contents |
[edit] Structure
The KML file specifies a set of features (placemarks, images, polygons, 3D models, textual descriptions, etc.) for display in Google Earth, Maps and Mobile, or any other 3D earth browser (geobrowser) implementing the KML encoding. 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>
The MIME type associated with KML is application/vnd.google-earth.kml+xml; the MIME type associated with KMZ is application/vnd.google-earth.kmz.
[edit] Geodetic reference systems in KML
For its reference system, KML uses geographic coordinates (latitude and longitude) in the World Geodetic System of 1984 (WGS84). However it does not support the general idea of the geodetic reference system, in which there are multiple coordinate systems of the Earth for which geographic coordinates could be defined.
[edit] OGC standard process
The KML 2.2 specification was submitted to the Open Geospatial Consortium to assure its status as an open standard for all geobrowsers. In November 2007 a new KML 2.2 Standards Working Group was established within OGC to formalize KML 2.2 as an OGC standard. Comments were sought on the proposed standard until January 4, 2008,[1] and it became an official OGC standard on April 14, 2008.[2]
[edit] Applications using KML
- ArcGIS Explorer
- Feature Manipulation Engine (FME)
- Flickr
- Google Earth
- Google Maps
- Google Mobile
- Live Search Maps
- Microsoft Virtual Earth
- Mapufacture
- Marble (KDE)
- OpenLayers
- Platial
- RouteBuddy for Mac
- World Wind
- Yahoo Pipes
- SuperMap iServer (SuperMap IS) .NET and Java
- OpenLAPI, an LGPL implementation of the Location API for Java ME
[edit] See also
[edit] References
- ^ Open Geospatial Consortium, Inc (2007-12-04). "The OGC Seeks Comment on OGC Candidate KML 2.2 Standard". Press release. Retrieved on 2007-12-10.
- ^ Shankland, Stephen (2008-04-14). Google mapping spec now an industry standard. CNET. Retrieved on 2008-04-14.
This article needs additional citations for verification. Please help improve this article by adding reliable references. Unsourced material may be challenged and removed. (January 2008) |
[edit] External links
- OGC KML 2.2 Standard
- OGC Official KML 2.2 Schema
- Google KML Documentation
- KML Validator
- Developer Knowledge Base: KML in Google Earth
- KML Developer Support group
- KMLImporter importing placemarks into NASA World Wind
- Use hierarchical maps (Mindmaps) to create and manage KML files and convert Excel data to KML.
- Google Earth Connectivity Add-on for ArchiCAD 9
- Validate your KML (Online or Offline!), Google Maps API Blog.
- Paste KML directly onto a Google Map
|