GoogleEarthPhotoTag1.21.exe GoogleEarthPosition1.12.exe LatLongConversion1.07.exe
This is a collection of tools for working with Google Earth, reading/modifying coordinates, converting between different format coordinates, saving the current Google Earth position to JPEG files as Exif GPS data etc.
Programs
Google Earth Position
A tiny program for reading coordinates from the Google Earth client (or editing coordinates to make Google Earth fly to a new location).
The Copy buttons are intended to be useful for pasting coordinates and LookAt parameters into a spreadsheet, for example when generating KML using Google's Spreadsheet Mapper 2.0
Latest version: 1.12
Download: GoogleEarthPosition.exe
Google Earth PhotoTag
A small program for adding Exif GPS data to JPEG files and reading coordinates from the Google Earth client.
With the Auto-Mode enabled any new file drag-and-dropped onto the PhotoTag window will automatically be tagged with the current coordinates from the Google Earth client.
Latest version: 1.21
Download: GoogleEarthPhotoTag.exe
The program requires the Exiv2.exe command line tool by Andreas Huggel which can be downloaded (for free) from http://www.exiv2.org/
The options to read/write Exif GPS data can be added to the windows right-click menu for JPEG files (click on the button in the About: dialog to add these options into the registry).
The program can write KML output for showing a collection of photos inside Google Earth, like in this screenshot:
To edit the style of the popup balloon edit the *.PlacemarkStyle files in the same directory as the executable. Any files with a .PlacemarkStyle extension will automatically show up on the Placemark style dropdown list in the PhotoTag program window.
The program will include photo comments from descript.ion files or JPEG embedded comments in the placemark balloons. JPEG Comments or descriptions can also be edited in the PhotoTag GUI (configure which type to edit using the right-click menu; JPEG comments are stored inside the file itself so will stay with the file when you move/copy it, descript.ion comments are kept in a separate file and are faster to read/store, but not understood by all programs).
LatLong Conversion
A tiny program for converting coordinates between Degree Minute Second and Decimal formats.
The tool can handle the following DMS formats:Decimal coordinates are in the format:
- 8 deg 32' 54.73" South 119 deg 29' 28.98" East
- 8°32'54.73"S, 119°29'28.98"E
- 8:32:54S,119:29:28E
- -8.548333, 119.491383
Latest version: 1.07
Download: LatLongConversion.exe
Source
These programs are written in the AutoHotkey language (http://www.autohotkey.com)
The source code for the programs can be downloaded from the Google Code source tab. There is also a library file libGoogleEarth.ahk which includes the following functions:
- Converting Coordinates
- Deg2Dec() - convert from 8°32'54.73"S, 119°29'28.98"E into -8.548333, 119.491383
- Dec2Deg() - vice versa
- Dec2Rel() - convert into 0/1 55/1 5617/100, 78/1 36/1 2061/10 format (useful for raw Exif GPS data)
- Google Earth functions
- IsGErunning() - simple check to see if the Google Earth client is running
- GetGEpos() - get the current Google Earth coordinates and LookAt camera info using the COM API
- GetGEpoint() - get the current Google Earth coordinates and altitude using the COM API
- SetGEpos() - fly the Google Earth client to a specific coordinate
- FlyToPhoto() - fly the Google Earth client to the coordinate stored in a JPG file
- GEtimePlay() - start playing timeslider animation (useful when recording movies as GE Pro hides time control)
- GEtimePause() - stop playing timeslider animation
- JPEG Exif, Exif GPS, XMP tag and JPEG Comment functions
- GetPhotoLatLong() - read the Exif GPS Latitude/Longitude stored in a JPG file
- GetPhotoLatLongAlt() - read the Exif GPS Latitude/Longitude/Altitude stored in a JPG file
- SetPhotoLatLong() - write Exif GPS Latitude/Longitude data to a JPG file
- SetPhotoLatLongAlt() - write Exif GPS Latitude/Longitude/Altitude data to a JPG file
- ErasePhotoLatLong() - delete the Exif GPS Latitude/Longitude/Altitude data from a JPG file
- GetExif() - read full Exif data from a JPG file
- !GetJPEGComment() - read JPEG embedded comment
- !SetJPEGComment() - write JPEG embedded comment
- SetXmpTag() - read JPEG file XMP tags
- GetXmpTag() - write JPEG file XMP tags
- Other
- ImageDim() - return image dimensions (uses ImageMagick identify.exe)
- FileDescription() - read file description from descript.ion file
- WriteFileDescription() - write file description to descript.ion file
- captureOutput() - capture output from console command line (uses cmdret.dll if available)
The JPEG Exif functions require the Exiv2.exe command line tool by Andreas Huggel. It can be downloaded at http://www.exiv2.org/ (GPL 2+ license)
The Google Earth COM API functions requires the Embedded Windows Scripting and COM for Autohotkey library (ws4ahk.ahk) from http://www.autohotkey.net/~easycom/
The JPEG Exif functions will optionally use cmdret.dll if present (removing the need for temp files while capturing command output) http://www.autohotkey.com/forum/topic3687.html (already bundled in GoogleEarthPhotoTag)
Further information about the Google Earth COM API can be found here: http://earth.google.com/comapi/
These programs are distributed without any warranty. The functions for writing to JPEG files can probably be considered safe as they rely the Exiv2 command line tool for file write access (and all writes in the PhotoTag program are verified by a read operation afterwards). However, do make sure there is a backup of all files before using these programs.
