Convert .kml to .txt files -
i´m working gmt , have several kml files convert .txt files include them in plot. know there way convert kml2txt in 1 of versions of gmt, have older version. know of way of converting these files?
if want convert kml "text", may want try kml csv converter, converts metadata each placemark extracted individual fields 1 row per placemark. can view/edit/filter csv in excel or application can open csv file.
http://www.convertcsv.com/kml-to-csv.htm
for example:
input kml:
<placemark> <timestamp> <when>2007-01-14t21:05:02z</when> </timestamp> <styleurl>#paddle-a</styleurl> <point> <coordinates>-122.536226,37.86047,0</coordinates> </point> </placemark>
output csv:
timestamp/when,styleurl,longitude,latitude,altitude 2007-01-14t21:05:02z,#paddle-a,-122.536226,37.86047,0
note if source "kml" file compressed "kmz" file can treat kmz file zip file , unzip zip utility. rename .kmz file .zip , use favorite zip utility unpack kml file.
there many different kml2csv converters available 1 online (no install required) , seems job enough except point geometries supported.
Comments
Post a Comment