Trial4life
Programmer
Hi,
I'm searching for a way to add to the context menu of .jpg files an option that launches Google Earth and marks the location of the photo on it, by reading the EXIF data stored inside the image file.
The script should be something like this:
− Read latitude and longitude stored in the EXIF data of the image clicked with the right click context menu
× If the image hasn't any GPS data, generates an error message box
+ If the image has GPS data, write a file (similar to the one posted below) with [LAT],[LONG] and [FILE NAME] of the clicked image file.
+ Save the file in "temp" Windows folder (so that it will be deleted automatically later) as a .kml file, named as the image file name
+ Open the .kml created file
When the kml file is opened, Google Earth will start automatically and will center the view on the GPS coordinates.
Here's the sample .kml file:
The problem is that I don't know much of VBS, so I don't know how to create a script like this. Anyway, is it possible? Do you have any suggestions?
Thanks in advice...
I'm searching for a way to add to the context menu of .jpg files an option that launches Google Earth and marks the location of the photo on it, by reading the EXIF data stored inside the image file.
The script should be something like this:
− Read latitude and longitude stored in the EXIF data of the image clicked with the right click context menu
× If the image hasn't any GPS data, generates an error message box
+ If the image has GPS data, write a file (similar to the one posted below) with [LAT],[LONG] and [FILE NAME] of the clicked image file.
+ Save the file in "temp" Windows folder (so that it will be deleted automatically later) as a .kml file, named as the image file name
+ Open the .kml created file
When the kml file is opened, Google Earth will start automatically and will center the view on the GPS coordinates.
Here's the sample .kml file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="[URL unfurl="true"]http://www.opengis.net/kml/2.2"[/URL] xmlns:gx="[URL unfurl="true"]http://www.google.com/kml/ext/2.2"[/URL] xmlns:kml="[URL unfurl="true"]http://www.opengis.net/kml/2.2"[/URL] xmlns:atom="[URL unfurl="true"]http://www.w3.org/2005/Atom">[/URL]
<Placemark>
<name> [FILE NAME] </name>
<open> 1 </open>
<Point>
<coordinates> [LAT],[LONG],0 </coordinates>
</Point>
</Placemark>
</kml>
The problem is that I don't know much of VBS, so I don't know how to create a script like this. Anyway, is it possible? Do you have any suggestions?
Thanks in advice...