Created
December 26, 2012 15:47
-
-
Save dannymcc/4380995 to your computer and use it in GitHub Desktop.
Generate KML-file for Googlemaps from simple Name,Latitude,Longitude list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo \<?xml version=\"1.0\" encoding=\"UTF-8\"?\> | |
echo \<kml xmlns=\"http://www.opengis.net/kml/2.2\"\> | |
function Place { | |
echo \<Placemark\> | |
echo \<name\>$1\</name\> | |
echo \<description\>\</description\> | |
echo \<Point\> | |
echo \<coordinates\>$3,$2,0\</coordinates\> | |
echo \</Point\> | |
echo \</Placemark\> | |
echo | |
} | |
echo \<Folder\> | |
Place Name3 70.678774 25.777337 | |
Place Name4 70.711932 25.864923 | |
Place Name5 70.789738 26.228612 | |
Place Name6 70.946750 26.702051 | |
Place Name7 70.949611 27.289917 | |
Place Name8 71.016239 27.380057 | |
Place Name8 71.096331 27.623758 | |
Place Name9 71.060266 27.938707 | |
echo \</Folder\> | |
echo \</kml\> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment