Code covered by the BSD License  

Highlights from
Google Earth Toolbox

image thumbnail
from Google Earth Toolbox by scott lee davis
Various plotting/drawing functions that can be saved as KML output, and loaded in Google Earth

demo_ge_scatter()
function demo_ge_scatter()

rads = linspace(0,2*pi,6);
x = [1*sin(rads);0.6*sin(rads+0.2*pi)];
y = [1*cos(rads);0.6*cos(rads+0.2*pi)];
xShape = x(:);
yShape = y(:);
clear rads x y


kmlStr1 = ge_scatter(-180+180*rand(1000,1),90*rand(1000,1));

kmlStr2 = ge_scatter(-180+180*rand(1000,1),-90+90*rand(1000,1),...
           'marker','*',...
           'markerEdgeColor','FFFF00FF',...
           'markerFaceColor','80FF00FF',...
           'altitudeMode','relativeToGround');
       
kmlStr3 = ge_scatter(180*rand(1000,1),90*rand(1000,1),...
           'marker','o',...
           'markerEdgeColor','FF00FF00',...
           'name','green',...
           'markerScale',0.1);
       
kmlStr4 = ge_scatter(180*rand(1000,1),-90+90*rand(1000,1),...
           'markerEdgeColor','FFFFAB00',...
           'markerEdgeWidth',5,...
           'markerFaceColor','none',...
           'xUnitShape',xShape,...
           'yUnitShape',yShape);

ge_output('demo_ge_scatter.kml',[kmlStr1,kmlStr2,kmlStr3,kmlStr4])

Contact us