Code covered by the BSD License  

Highlights from
kml2kmz.m

5.0

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

kml2kmz.m

by

 

21 Nov 2012 (Updated )

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

| Watch this File

File Information
Description

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.

30 Nov 2012 Rafael Oliveira

Hi, really nice code, would you mind if I include your code into the my kml toolbox? (FE: http://www.mathworks.com/matlabcentral/fileexchange/34694-kml-toolbox-v2-3)
Regards,

Rafael

Updates
27 Nov 2012

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

10 Dec 2012

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

Contact us