No BSD License  

Highlights from
Latitude Longitude to KML

3.8

3.8 | 10 ratings Rate this file 53 Downloads (last 30 days) File Size: 578 Bytes File ID: #12225

Latitude Longitude to KML

by Patrick Robinson

 

09 Sep 2006 (Updated 11 Sep 2006)

converts lat/lon data to a google-earth file

| Watch this File

File Information
Description

specify a file name and a matrix containing latitude / longitude data and the program outputs a KML track file viewable in Google Earth.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
11 Sep 2006 Abe Smith  
02 Oct 2006 Amy Farris

it is simple, but it works great!

thanks

04 Jul 2007 kabardian TURKISH

an basic but exellent code

11 Sep 2007 quabbani wilson

it sucked

23 Nov 2007 Scott C

This code does work. Thanks.

20 May 2008 wang tan

i hope to find a file converts Lat/Long to X-Y coordinate

29 May 2009 Brad

wang tan: look for the wgs84 file somebody posted on this site.

04 Aug 2009 ahmad abdul

but I can't plot all the lat long in the Google Earth (path).
Any way to do it? My file looks something like this...I assume it will plot the path in the google earth using this file....any help?

<kml xmlns="http://earth.google.com/kml/2.0">;
 <Folder>
  <Placemark>
   <name>POINT path</name>
   <Style>
     <LineStyle>
       <color>ff00ff00</color>
     </LineStyle>
   </Style>
   <LineString id="POINT string">
     <extrude>0</extrude>
       <tessellate>0</tessellate>
       <altitudeMode>clampToGround</altitudeMode>
         <coordinates>
-1.1929924500, 52.9404052600, 0.0
-1.1929924700, 52.9403052500, 0.0
-1.1929924800, 52.9402052300, 0.0
-1.1929925000, 52.9403052200, 0.0
-1.1929925100, 52.9403052000, 0.0
         </coordinates>
   </LineString>
  </Placemark>
 </Folder>
</kml>

02 Sep 2009 Paul

works great. thanks

18 Dec 2009 Fraser Dickson

Hi This seems to work great but how do i just plot my lat longs rather than join them up into a track. Can this be done?

31 Mar 2010 Jessica

Thanks a TON! :D

12 Dec 2010 sukuchha shrestha

@Fraser Dickson check following link

http://shreshai.blogspot.com/2010/12/kml-creation-using-matlab.html

08 Feb 2011 Arpit Gupta

It works great. I just used it. I have location traces collcted for few hours, I will try to enhance this work by enabling reading of corresponding timestamp and get more information from the map file.

Thanks,
Arpit

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
satellite Patrick Robinson 22 Oct 2008 08:37:59
track Patrick Robinson 22 Oct 2008 08:37:59
kml Patrick Robinson 22 Oct 2008 08:37:59
googleearth Patrick Robinson 22 Oct 2008 08:37:59
latitude Patrick Robinson 22 Oct 2008 08:37:59
longtitude Patrick Robinson 22 Oct 2008 08:37:59
earth Patrick Robinson 22 Oct 2008 08:37:59
track Angela Oguna 23 Feb 2009 15:56:08
latitude ashish sharma 06 Mar 2010 10:01:11
kml Martijn 21 Sep 2010 10:45:38
latitude guru prasad 08 Nov 2010 05:34:46
earth Maria 30 May 2011 06:49:07
kml Maria 30 May 2011 06:49:10
earth Jon Bjarnason 27 Jul 2011 06:57:07

Contact us at files@mathworks.com