KML File conversion

  • Follow


Hi i recently got a piece of code in file exchange that takes an array of lat and longs and creates  an xml file with the data it works great however it produces them as a joined up track.  How can i just plot the points rather than join them up

I really dont know enough about this area to do this 

the code was as follows

function pwr_kml(name,latlon)
%makes a kml file for use in google earth
%input:  name of track, one matrix containing latitude and longitude
%usage:  pwr_kml('track5',latlon)

header=['<kml xmlns="http://earth.google.com/kml/2.0"><Placemark><description>"' name '"</description><LineString><tessellate>1</tessellate><coordinates>'];
footer='</coordinates></LineString></Placemark></kml>';

fid = fopen([name '.kml'], 'wt');
d=flipud(rot90(fliplr(latlon)));
fprintf(fid, '%s \n',header);
fprintf(fid, '%.6f, %.6f, 0.0 \n', d);
fprintf(fid, '%s', footer);
fclose(fid)




Is there something simple i need to change to do this?  
0
Reply Fraser 12/18/2009 8:19:04 AM


0 Replies
1082 Views

(page loaded in 0.015 seconds)

Similiar Articles:










7/27/2012 1:43:06 AM


Reply: