mgdevereux / googleearthtoolbox

Automatically exported from code.google.com/p/googleearthtoolbox
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

difficulty editing/appending pointDataCell information #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have had a very difficult time appending data to the single point pop-up
window.  I would like to add 'velocity' and 'attitude' entries and call
those values to be displayed from a column vector in the appropriate cell.
 The documentation is not very clear as to how this can be done.  Can this
be done multiple points, too?

Original issue reported on code.google.com by JAMoor...@gmail.com on 8 Feb 2008 at 1:11

GoogleCodeExporter commented 9 years ago
Remedy is using a loop and concatenating the KML strings. Note that this is 
usually 
quite slow (because of file i/o), especially when there are a lot of points.

example:
kmlStr=''
for k=1:10

   kmlStr = [kmlStr,ge_point(x,y,z,'pointDataCell',{'point number',num2str(k)})]

end

(Note that I included the above example on a computer with no MATLAB, so there 
may 
still be a small error in this example...)

-Jurriaan

Original comment by jhspaaks@hotmail.com on 6 Mar 2008 at 11:49

GoogleCodeExporter commented 9 years ago

Original comment by skawtus on 8 Mar 2008 at 12:03