kml2kmz.m

Converts .kml file types into self-contained .kmz filetypes.

You are now following this Submission

kml2kmz copies all the support documents used by the kml into a single 'files' folder, and updates the file path in the kml to the new relative path accordingly. The kml is also copied, then zipped up with the new copies of supporting files. The zip file is then renamed with a .kmz extension, and put in the same folder as the original kml. The new copies of supporting documents are then deleted by default. Supporting documents referenced by KML attributes are not yet supported.

Cite As

Ryan Bell (2026). kml2kmz.m (https://www.mathworks.com/matlabcentral/fileexchange/39128-kml2kmz-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

v2.1 - added conditional check for existing, but empty, elements

1.2.0.0

Added online file download, improved error detection, and does not copy identical files more than once.

1.0.0.0