Export to GitHub

googleearthtoolbox - issue #3

difficulty editing/appending pointDataCell information


Posted on Feb 8, 2008 by Massive Camel

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?

Comment #1

Posted on Mar 6, 2008 by Swift Bear

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

Comment #2

Posted on Mar 8, 2008 by Happy Hippo

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-High