Sustainability of Digital Formats: Planning for Library of Congress Collections

Introduction | Sustainability Factors | Content Categories | Format Descriptions | Contact
Format Description Categories >> Browse Alphabetical List

KML Zipped

>> Back
Table of Contents
Format Description Properties Explanation of format description terms

Identification and description Explanation of format description terms

Full name KML (formerly Keyhole Markup Language) Zipped
Description

KMZ is the ZIP-compressed KML (formerly Keyhole Markup Language) file that stores map locations viewable in various geographic information systems (GIS) applications, such as Google Earth, Blue Marble Geographics’ Global Mapper, and/or ESRI ArcGIS Pro. It contains one or more placemarks that may include a custom name and the latitudinal and longitudinal coordinates of the location. KMZ files may also include COLLADA 3D models, overlays, sound files, textures, and images referenced by the KML file. The structure of KMZ files are defined by the Open Geospatial Consortium as part of the KML specification in Annex C. See KML for more details about KML files and structure.

KMZ files consist of a main KML file and zero or more supporting files that are packaged using a ZIP-compression utility into one unit, called an archive. KMZ files may then be stored, shared by email, or hosted on a web server. A NetworkLink can fetch a KMZ file from a web server. When the KMZ file is unzipped, the main KML file and its supporting files are separated into their original formats and directory structure, with their original filenames and extensions.

In addition to being an archive format (also known on this site as an Aggregate format), the ZIP format is also compressed, so an archive can include only a single large KML file. Depending on the content of the KML file, this process typically results in 10:1 compression. For example, 10 kilobyte KML file can be served with a 1 kilobyte KMZ file.

A KMZ file contains a single root KML document, typically a file named "doc.kml" at the root directory level but the first .kml file entry in the KMZ file is the actual one selected in Google Earth regardless of its name. Files for referenced overlays, images, icons, etc., including network-linked KML files, can be included. Referenced files are typically in subdirectories. To be compatible with all geobrowsers, the ZIP file should use no compression or DEFLATE compression (i.e. be compatible with the 1993 PKWARE 2.0 version of the ZIP specification, as registered with IANA).

A single KMZ file may not be complete because KMZ supports dynamic incorporation of remote KML data not included in the file. This feature is useful to reduce bandwidth during real-time use.

Production phase Final phase format. KMZ files are used to deliver compressed KML data and supporting files. KMZ files should be created when the doc.kml file is larger than 10 Kbytes, or if the doc.kml files reference other files (images, sound files, models, textures).
Relationship to other formats
    Contains KML_2_2, KML, Version 2.2. KMZ may contain any version of KML. It is not restricted to KML version 2.2.
    Subtype of ZIP_PK, ZIP File Format (PKWARE). To be compatible with all geobrowsers, the KML file should use no compression or DEFLATE compression (i.e. be compatible with the 1993 PKWARE 2.0 version of the ZIP specification).

Local use Explanation of format description terms

LC experience or existing holdings The Library of Congress has, as of August 2022, about 15,000 KMZ files in its collections.
LC preference See the Recommended Formats Statement for the Library of Congress format preferences for Geographic Information System (GIS) - Vector images.

Sustainability factors Explanation of format description terms

Disclosure An openly documented format adopted as an implementation standard, by the Open Geospatial Consortium (OGC), an international voluntary consensus standards organization.
    Documentation The KML format is defined via OGC in OGC 12-007r2. KMZ is defined in Annex C: KMZ Files (normative). See KML.
Adoption

Google designed KMZ files to reduce the space taken up by KML files, allow for supporting files, and to make them easier to distribute and share with multiple users. See KML.

Common uses for KMZ files include sharing placemarks or tours with users via email or when publishing on a webpage. Various programs may create KMZ files, but Google Earth Pro primarily creates the files.

Users can open KMZ files with various mapping applications for Windows, macOS, Linux, Android, and iOS. The Google Earth Pro desktop application is a common choice for opening KMZ files. Files can also be opened in Google Maps by saving the KMZ file to an online location and then typing the URL in the Google Maps search box.

Since KMZ files are ZIP-compressed KML files, they can also be opened by changing the .kmz file extension to .zip, then decompressing them with a ZIP utility. The resulting KML file can then be opened with a GIS application.

    Licensing and patents No known license or patent concerns for generation and use of the format. Comments welcome.
Transparency See KML.
Self-documentation See KML.
External dependencies None.
Technical protection considerations See KML.

Quality and functionality factors Explanation of format description terms

GIS images and datasets
Normal functionality

KMZ files, zipped KML files with a .kmz extension, contain a single root KML document (notionally "doc.kml") and optionally any overlays, images, icons, and COLLADA 3D models referenced in the KML including network-linked KML files. KML documents and their related images (if any) may be compressed using the ZIP format into KMZ archives. KML documents and KMZ archives may be shared by e‑mail, hosted locally for sharing within a private internet, or hosted on a web server.

Support for GIS metadata KML has very limited support for metadata as recommended by ISO 19115 or FGDC. The coordinate reference system in use is implicit, in that KML uses a single CRS. See KML.
Support for grids Not designed to support grid-based analysis. See KML.
Beyond normal functionality Many features of KML that support web-based visualization aspects are beyond the normal functionality of geospatial data formats. These include support for styling, embedding HTML for captions, incorporating textured 3D models, etc. Support for incorporating remote KML data is also a special feature. See KML.

File type signifiers and format identifiers Explanation of format description terms

Tag Value Note
Filename extension kmz
From registration at IANA.
Internet Media Type application/vnd.google-earth.kmz
See registration at IANA.
Magic numbers See related format.  See ZIP_PK
Microsoft FOURCC GKmz
See registration at IANA
Pronom PUID fmt/724
See http://www.nationalarchives.gov.uk/PRONOM/fmt/724.
Wikidata Title ID Q28921959
See https://www.wikidata.org/wiki/Q28921959.

Notes Explanation of format description terms

General KML/KMZ became an international standard of the Open Geospatial Consortium in 2008. The longitude and latitude components (decimal degrees) are as defined by the World Geodetic System of 1984 (WGS84). The vertical component (altitude) is measured in meters from the WGS84 EGM96 Geoid vertical datum.
History The IANA mediatype application for KMZ states that "KML is an acronym for Keyhole Markup Langage, which stems from the time before the Keyhole Corporation was acquried by Google, and their Keyhole application redesigned and rebranded as Google Earth." See also KML.

Format specifications Explanation of format description terms


Useful references

URLs


Last Updated: 08/10/2022