MATLAB Answers

How to export two or more geostructs using kmlwrite()

2 views (last 30 days)
Ryan
Ryan on 17 Feb 2013
I am a relatively new user of the mapping toolbox.
I have two geostructs with distinct data, and different fields. Each represents point data, and I want to display both in Google Earth using a single file.
Currently I can create two separate KML files like this:
kmlwrite(kml_file1,data1,'Icon',i1)
kmlwrite(kml_file2,data2,'Icon',i2)
And open them separately in Google Earth.
I want to do something like this:
kmlwrite(kml_file,data1,'Icon',i1,data2,'Icon',i2)
Where both structures are saved in the KML file with their own separate icons, descriptions etc.
Grateful for any help I can get.

Answers (0)

Community Treasure Hunt

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

Start Hunting!