View source code of the function ge_folder() in the MATLAB editor
Google Earth toolbox contents

ge_folder

Organize kml outputs into folders.

Syntaxgo to top

kmlStr2 = ge_folder(kmlStr1)

Descriptiongo to top

kmlStr2 = ge_folder(kmlStr1)

Organize kml outputs into multiple level folders. Function ge_folder() constructs output variable "kmlStr2" by adding a kml header and footer to the input variable "kmlStr1", indicating the folder level.

Remarksgo to top

Organizing kml files into multiple levels can be achieved by recursively using ge_folder(). See example below.

Examplesgo to top

The code contained in this m-file will display as follows when viewed in Google Earth: