Ruby developer. CTO. Swimmer. Always trying to write more
h1. PhotoPlanet.py README
Jamie Lawrence, 4th August, 2006
This is a small script to “locate” your photos in “Google Earth”:http://earth.google.com/. It takes a GPS tracklog and a collection of photos, and generated a KML or KMZ file that allows Google Earth to pin thumbnails of your photos at the location where they were taken
Unzip this directory to any location. Done.
python PhotoPlanet.py -g <.gpx file> -p <photo dir> -o <output file> -z
python PhotoPlanet.py -g test2.gpx -p "E:\Documents and Settings\Jamie\Desktop\Test\test2" -o test2.kmz -z
* Omit the -z switch if you just want a KML file (which link to the photos on your hard drive).
* Open the generated KML/KMZ file in Google Earth and your photos will be added
* An example .kmz file is included so you can see what the output is like
The code is reproduced below for information purposes only. You should download “the full archive”:http://jamie.ideasasylum.com/notebook/file_download/7 which includes all the necessary files, a README (mostly this document), and “example .KMZ file”:http://jamie.ideasasylum.com/notebook/file_download/8.