{"id":2996,"date":"2026-08-08T01:59:36","date_gmt":"2026-08-07T22:59:36","guid":{"rendered":"https:\/\/picajet.com\/articles\/formats\/kml\/"},"modified":"2026-08-08T02:05:47","modified_gmt":"2026-08-07T23:05:47","slug":"kml","status":"publish","type":"format","link":"https:\/\/picajet.com\/articles\/formats\/kml\/","title":{"rendered":"KML"},"content":{"rendered":"<p class=\"wp-block-paragraph\">KML was developed by Keyhole, Inc. for its Earth Viewer application in the early 2000s; Google acquired Keyhole in 2004 and the product became Google Earth, with KML as its native markup format. In 2006 Google submitted KML to the Open Geospatial Consortium, and the OGC approved KML 2.2 as an official OpenGIS encoding standard on 14 April 2008 \u2014 notably the first case of an already-widely-used de facto format being brought into the OGC process rather than designed within it.<\/p>\n<p class=\"wp-block-paragraph\">Structurally, KML is XML text: placemarks, paths, polygons, styling, and virtual-camera viewpoints are all expressed as tags, with geometry elements adapted from Geography Markup Language. That makes a KML file human-readable and easy to hand-edit, but it also means a KML file that references external images for ground overlays or custom icons depends on those files being present at the referenced paths \u2014 a dependency problem similar in spirit to shapefile&#8217;s companion-file issue, just handled through URLs instead of a fixed filename convention.<\/p>\n<ul class=\"wp-block-list\"><li>Placemarks \u2014 points marking a specific location<\/li><li>Paths and polygons \u2014 lines and shaded regions built from geometry elements adapted from Geography Markup Language<\/li><li>Ground overlays \u2014 images draped onto the map at a defined location<\/li><li>Styles \u2014 color, icon, and line formatting applied to placemarks and geometry<\/li><li>Camera\/view elements \u2014 saved viewpoints used for guided tours in an earth browser<\/li><\/ul>\n<p class=\"wp-block-paragraph\">In a DAM, plain KML is generally the easier of the two Keyhole formats to catalog when it stands alone (no bundled images), because it is a single text file whose contents can be indexed, searched, and even diffed like any other structured document. Where a KML file does reference external assets, a DAM needs to track and preserve those links or the map annotation breaks on reuse \u2014 which is a strong argument for standardizing on KMZ for anything beyond simple placemarks.<\/p>","protected":false},"excerpt":{"rendered":"<p>KML is an XML-based markup language for describing and displaying geographic features such as placemarks, paths, and overlays in earth-browser applications like Google Earth.<\/p>\n","protected":false},"author":0,"featured_media":0,"template":"","meta":{"footnotes":"","faq":[{"question":"Is KML the same as KMZ?","answer":"No. KML is the plain XML markup file itself, while KMZ is that same KML file zipped together with any images, icons, or 3D models it references, packaged as one file."},{"question":"Who created KML and who standardized it?","answer":"Keyhole, Inc. created KML for its Earth Viewer application; Google acquired Keyhole in 2004, and the Open Geospatial Consortium adopted KML 2.2 as an official standard on 14 April 2008."},{"question":"Can a DAM preview a KML file without Google Earth?","answer":"Yes, tools like QGIS or web libraries built on GDAL\/OGR can render KML placemarks and geometry for a preview thumbnail without requiring Google Earth itself."},{"question":"Why might a KML file look broken when reused from a DAM?","answer":"If the KML references external images or icons by relative or absolute path and those files aren't carried along with it, the overlays and custom icons will fail to load in the viewer."},{"question":"Is KML good for storing complex GIS attribute data?","answer":"It can hold structured data via extended data fields, but it's primarily designed for visualization in earth-browser applications rather than as a general-purpose vector attribute database like a shapefile or GeoPackage."},{"question":"Can KML be converted to GeoJSON or Shapefile?","answer":"Yes, GDAL\/OGR's ogr2ogr command converts KML to GeoJSON, Shapefile, GeoPackage, and other vector formats, which a DAM conversion pipeline can automate on request."},{"question":"Is KML XML-based?","answer":"Yes, KML is plain text XML, using geometry elements adapted from Geography Markup Language, which makes it readable, editable, and diffable without specialized software."},{"question":"Should a DAM store bare KML files with linked images or convert them?","answer":"Converting to KMZ, or at minimum bundling the referenced images with the KML file, keeps the map annotation self-contained and prevents broken overlays after the asset is moved or downloaded."}],"checked_date":"2026-08-07","sources":[{"statement":"KML developed by Keyhole, Inc.; Google acquired Keyhole in 2004","source_name":"OGC KML standard page","url":"https:\/\/www.ogc.org\/standards\/kml\/","checked":"2026-08-07"},{"statement":"OGC approved KML 2.2 as an official OpenGIS encoding standard on 14 April 2008, the first de facto standard submitted into the OGC process","source_name":"Geography Realm \u2014 A Look at KML","url":"https:\/\/www.geographyrealm.com\/look-kml-open-standard-represent-visualize-spatial-information\/","checked":"2026-08-07"}],"kicker":"","fact_checker":0,"reading_time":0,"revisions":[],"seo_title":"","seo_description":"","noindex":false,"ext":"kml","full_name":"Keyhole Markup Language","vendor_name":"Keyhole, Inc. (acquired by Google in 2004); standardized by the Open Geospatial Consortium","introduced":"Developed by Keyhole, Inc. in the early 2000s for its Earth Viewer application; adopted as OGC KML 2.2 encoding standard on 14 April 2008","container_notes":"A KML file is plain XML text describing placemarks, lines, polygons, styles, and camera views using tags derived in part from Geography Markup Language geometry elements. It can reference external images and icons by URL for ground overlays and icons, which means a bare .kml file with local image references can break if those linked files are moved or not bundled alongside it \u2014 the problem KMZ was created to solve by zipping everything together.","open_with":[{"platform":"Desktop\/Earth browser","how":"Google Earth Pro opens KML natively and is the primary reference viewer for the format"},{"platform":"Desktop GIS","how":"QGIS imports KML as a vector layer via its OGR-based data provider"},{"platform":"Web","how":"Google My Maps and Google Maps can import KML files for display and sharing"},{"platform":"Command line","how":"GDAL\/OGR's ogr2ogr converts KML to and from shapefile, GeoJSON, and GeoPackage"}],"archive_advice":"Archive KML files with any externally referenced images and icons captured alongside them, or convert to KMZ so the assets travel as one package; because KML is plain XML it is also straightforward to version-control and diff, which is useful for tracking edits to map annotations over time in a DAM.","related":[],"tool_link":""},"silo":[23],"class_list":["post-2996","format","type-format","status-publish","hentry","silo-formats"],"_links":{"self":[{"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/format\/2996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/format"}],"about":[{"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/types\/format"}],"version-history":[{"count":1,"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/format\/2996\/revisions"}],"predecessor-version":[{"id":3281,"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/format\/2996\/revisions\/3281"}],"wp:attachment":[{"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/media?parent=2996"}],"wp:term":[{"taxonomy":"silo","embeddable":true,"href":"https:\/\/picajet.com\/articles\/wp-json\/wp\/v2\/silo?post=2996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}