KML toolbox

Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more

15.7K Downloads

Updated 3 Mar 2016

From GitHub

View License on GitHub

This class-based MATLAB toolbox allows you to create many different plots in Google Earth, by automatically creating the required xml-based KML files without user interaction. Also allows to save as KMZ packages, including any model & images necessary for the plot.

Cite As

Rafael Oliveira (2023). KML toolbox (https://github.com/theolivenbaum/kml-toolbox), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Google Earth Toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2.7.0.0

Finally moved to GitHub :)

1.20.0.0

v2.7: fixed a bug in the contourf function, related to contours with custom contour levels

1.19.0.0

(forgot to update version number)

1.18.0.0

v2.6: finally possible to save KMZ files(default)- auto includes models & images. fix num2str behavior, reported by Nick Mortimer. Fix to keep path when saving, reported by Alberto. Added lineWidth/lineColor to contourf, suggested by Keith Epstein.

1.17.0.0

v2.3: A couple more bug fixes (thanks to Reid Pulley for reporting them!), added one example of animation to the test folder

1.16.0.0

v2.2: A few bug fixes.

1.15.0.0

v2.1: Added support for gx:LatLonQuad overlays, so now you can add non-square images to the kml

1.14.0.0

v2.0: Some bug fixes in the filled contour, added animation support.

1.13.0.0

v1.9: Finally implemented the filled contour plot! And also made some changes to the other contour functions to match better the color scale from MATLAB.
Added also a surf function, to plot 3D colored surfaces.

1.12.0.0

v1.8: increased to the numeric precision when saving numbers as text. Added the polyMap function, to create a 3D map similar to surf, but composed of a polygons with height proportional to the cell value (similar to hist3, but without binning).

1.11.0.0

v1.7: small correction in the quiver3d function, and implementation of the classic quiver plot in 2D, without using models anymore.

1.10.0.0

v1.6: made it compatible with older versions that do not support ~ as function output. Also added the suggestion of Balam Willemsen, to make run work with OSX... Any suggestions on the Linux side are welcome :)

1.8.0.0

v1.5: updated scatter and scatter3 to accept an different icons for each point. You must supply them as a cell array with the same size of the latitude and longitude inputs.

1.7.0.0

Corrected the image in File Exchange

1.6.0.0

v1.4 - Fixed some bugs, added documentation, and a method to animate a model in a trajectory (kml.modelTour)

1.2.0.0

v 1.3: fixed a small error in the checkUnit function

1.1.0.0

v1.2: Updated to support both degree and radian inputs.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.