View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 4.19 KB File ID: #39128 Version: 1.3




21 Nov 2012 (Updated )

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

| Watch this File

File Information

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.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
03 Dec 2012 Ryan Bell

Thanks! Don't mind at all, please include.

Comment only
30 Nov 2012 Rafael Oliveira

Rafael Oliveira (view profile)

Hi, really nice code, would you mind if I include your code into the my kml toolbox? (FE:


27 Nov 2012 1.2

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

10 Dec 2012 1.3

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

Contact us