Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Keyhole Markup Language

From Wikipedia, the free encyclopedia
Notation for expressing geographic annotation and visualization within Internet-based maps
"KML" redirects here. For other uses, seeKML (disambiguation).
Keyhole Markup Language
Filename extensions.kml,.kmz
Internet media type
  • application/vnd.google-earth.kml+xml
  • application/vnd.google-earth.kmz
Developed byKeyhole, Inc.,Google
Type of formatGIS file format
Extended fromXML

Keyhole Markup Language (KML) is anXML notation for expressing geographic annotation and visualization within two-dimensional maps and three-dimensionalEarth browsers. KML was developed for use withGoogle Earth, which was originally named Keyhole Earth Viewer. It was created byKeyhole, Inc, which was acquired byGoogle in 2004. KML became an international standard of theOpen Geospatial Consortium in 2008.[1][2] Google Earth was the first program able to view and graphically edit KML files, but KML support is now available in manyGIS software applications, such asMarble,[3]QGIS,[4] andArcGIS.[5]

Structure

[edit]

The KML file specifies a set of features (place marks, images, polygons, 3D models, textual descriptions, etc.) that can be displayed on maps ingeospatial software implementing the KML encoding. Every place has alongitude and alatitude. Other data can make a view more specific, such as tilt, heading, or altitude, which together define a "camera view" along with a timestamp or timespan. KML shares some of the same structural grammar asGeography Markup Language (GML). Some KML information cannot be viewed in Google Maps or Mobile.[6]

KML files are very often distributed asKMZ files, which arezipped KML files with a .kmz extension. The contents of a KMZ file are a single root KML document and optionally any overlays, images, icons, andCOLLADA 3D models referenced in the KML including network-linked KML files. The root KML document by convention is a file named "doc.kml" at the root directory level, which is the file loaded upon opening. By convention the root KML document is at root level and referenced files are in subdirectories (e.g. images for overlay).[7]

An example KML document is:

<?xml version="1.0" encoding="UTF-8"?><kmlxmlns="http://www.opengis.net/kml/2.2"><Document><Placemark><name>NewYorkCity</name><description>NewYorkCity</description><Point><coordinates>-74.006393,40.714172,0</coordinates></Point></Placemark></Document></kml>

TheMIME type associated with KML isapplication/vnd.google-earth.kml+xml; the MIME type associated with KMZ isapplication/vnd.google-earth.kmz.

Geodetic reference systems in KML

[edit]

For its reference system, KML uses 3D geographic coordinates: longitude, latitude, and altitude, in that order, with negative values for west, south, and below mean sea level. The longitude/latitude components (decimal degrees) are as defined by theWorld Geodetic System of 1984 (WGS84). Altitude, the vertical component, is measured in meters from theWGS84 EGM96 Geoid vertical datum. If altitude is omitted from a coordinate string, e.g. (-77.03647, 38.89763) then the default value of 0 (approximately sea level) is assumed for the altitude component, i.e. (-77.03647, 38.89763, 0).

A formal definition of the coordinate reference system (encoded as GML) used by KML is contained in the OGC KML 2.2 Specification. This definition references well-knownEPSGCRS components.[8]

OGC standard process

[edit]

The KML 2.2 specification was submitted to the Open Geospatial Consortium to assure its status as an open standard for allgeobrowsers. 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,[9] and it became an official OGC standard on April 14, 2008.[10]

The OGC KML Standards Working Group finished working on change requests to KML 2.2 and incorporated accepted changes into the KML 2.3 standard.[11]The official OGC KML 2.3 standard was published on August 4, 2015.[12]

See also

[edit]

References

[edit]
  1. ^"OGC® Approves KML as Open Standard".Open Geospatial Consortium. 2008-04-14. Archived fromthe original on Nov 30, 2018. Retrieved2018-11-20.
  2. ^"KML".Open Geospatial Consortium. Retrieved2018-11-20.
  3. ^"KML Support in Marble".Marble. Retrieved2018-11-20.
  4. ^"Import from KML. QGIS 2.0 Workshop". Archived fromthe original on 2025-03-20. Retrieved2024-12-13.
  5. ^"KML layers. ArcGIS Pro 3.4".
  6. ^"KML content isn't available in Google Maps".Google Help. Archived fromthe original on 2016-04-26. Retrieved2020-01-26.
  7. ^"KMZ Files".Keyhole Markup Language. Google for Developers. Retrieved2009-12-16.
  8. ^Wilson, Tim, ed. (2008-04-14).OGC KML. Open Geospatial Consortium, Inc. p. 14. Retrieved9 June 2015.
  9. ^"The OGC Seeks Comment on OGC Candidate KML 2.2 Standard" (Press release). Open Geospatial Consortium. 2007-12-04. Retrieved2007-12-10.
  10. ^Shankland, Stephen (2008-04-14)."Google mapping spec now an industry standard".CNET. Archived fromthe original on 2008-05-12. Retrieved2008-04-14.
  11. ^"OGC KML 2.3 SWG". OGC. Retrieved2013-10-07.
  12. ^"OGC KML 2.3 Standard". OGC. 4 August 2015. Retrieved2015-08-04.

External links

[edit]
Standards of theOpen Geospatial Consortium (OGC)
a subsidiary ofAlphabet
Company
Divisions
Subsidiaries
Active
Defunct
Programs
Events
Infrastructure
People
Current
Former
Criticism
General
Incidents
Other
Software
A–C
D–N
O–Z
Operating systems
Machine learning models
Neural networks
Computer programs
Formats and codecs
Programming languages
Search algorithms
Domain names
Typefaces
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
Y
Hardware
Pixel
Smartphones
Smartwatches
Tablets
Laptops
Other
Nexus
Smartphones
Tablets
Other
Other
Advertising
Antitrust
Intellectual
property
Privacy
Other
Related
Concepts
Products
Android
Street View coverage
YouTube
Other
Documentaries
Books
Popular culture
Other
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Keyhole_Markup_Language&oldid=1313783326"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp