|
|
KML File conversion
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: KML File conversion - comp.soft-sys.matlabHi 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 ... Coordinate conversion with proj.4 - comp.soft-sys.matlab ...Convert M file to Simulink Model - comp.soft-sys.matlab x-plane, simulink, and mex files - comp.soft-sys.matlab... in simulink - comp.soft-sys.matlab I m working on audio ... fprintf with array - comp.soft-sys.matlabKML File conversion - comp.soft-sys.matlab fprintf with array - comp.soft-sys.matlab KML File conversion - comp.soft-sys.matlab Hi i recently got a piece of code in file ... conversion of file format - comp.soft-sys.matlab... format - comp.soft-sys ... conversion of file format - comp.soft-sys.matlab How to Convert Text File Data to MS Excel Format | eHow.com Microsoft ... GPX, DXF, SHP, KML ... convert btrieve to csv or other export format - comp.databases ...Pulling out fields in a CSV file - comp.lang.awk convert btrieve to csv or other export format - comp.databases ... Pulling out fields in a CSV file - comp.lang.awk ... Convert GPS data to (x,y) coordenades - comp.soft-sys.matlab ...KML File conversion - comp.soft-sys.matlab Convert GPS data to (x,y ... I'm using a script that saves data (x,y) as .mat files in struct format. ... GPX, DXF, SHP, KML, CSV ... Google Earth Toolbox - comp.soft-sys.matlabKML File conversion - comp.soft-sys.matlab Google Earth Toolbox - comp.soft-sys.matlab... iconScale',1,'description', desc) The help file says ... How to Convert a KML to GPX | eHow.comGoogle Earth and Google Maps provide free tools for creating and sharing "waypoints" and other forms of spatial data. However, the KML file saved from Google Earth or ... How to Convert CSV to KML | eHow.comCSV stands for Comma Separated Values. If you have a CSV file containing locations that you wish to add to Google Maps, you need to convert it to a KML file. KML ... 7/27/2012 1:43:06 AM
|
|
|
|
|
|
|
|
|