General Topics :  geo-*- Rick Richardson's Linux Tools for Geocaching The fastest message board... ever.
 
Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: xicht ()
Date: June 06, 2010 03:57PM

Hello,

can anybody help this newby by the following task:
I would like to download all pictures belonging to the caches in a gpx file (easy so far, I think). Additionally I would like to have the GPS tag information in the meta information of the pictures changed automatically so that they are connected to the cache they belong to by the cache's location data.

Any easy way to do this?

Thanks for any help!

Xicht

Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: June 07, 2010 05:41AM

Check "geo-gallery" (from my patch set) for image downloads. Suggestions welcome.
Geotagging of images should be possible using "exif' (--set-value option).
You own a 550? Can you provide a georeferenced sample camera image?

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...

Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: August 24, 2010 01:43PM

I'd like to give this a go, although Oregon x00 firmware still doesn't support geotagging (I'm hoping that Garmin will fuse x00 and x50 fw together at some point, giving the 300 similar features as the 450 has), and I have no means to test it :(

My (see my patches) geo-gallery tool has served me well several times, although the image viewer of the Oregon is ****, say, sub-optimal for 100+ files. At the moment I use convert to merge text strings denoting cache ID, and image description, into the image (at top and bottom, and in white and black). I'd like to extend this to properly geotagging the images with the cache location ...

Edit: See next posting.

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...



Edited 1 time(s). Last edit at 08/26/2010 10:17AM by Steve8x8.

Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: August 26, 2010 10:28AM

(Unfortunately, this forum doesn't update timestamps for postings when they are edited. To get your attention, I have to write another posting, like this:)

I've tried to find the software necessary to geo-tag images downloaded from gc.com.
The idea is to
- fetch images (using geo-gallery, for example), then
- extract location information from GPX or HTML files and
- plug it into exif data.
Possible issues:
- fail to extract coordinates (old-style HTML?)
- non-JPEG images - will be converted to JPEG temporarily
- JPEG images without Exif headers - temporarily added
- existing GPS* information - will not be overwritten
- original files will be renamed to *_untagged
Todos:
- no parameter checking / usage message yet
- no debugging levels
- *_untagged files should be excluded from processing

geo-tagimages expects at least 2 command-line arguments: the GCID (as in GC1234A) and a filename (e.g. HTML/GC1234A.html, but GPX files should work as well). Optionally you can list image file names which are associated with the cache (as returned by geo-gallery), but for testing you can leave them blank.

Edit: as of Aug 27, 12:45 UTC there's a new version which seems to work for me.

Rick: This is not meant to be included into geo-* at the moment [;)]

Feedback is more than welcome.

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...



Edited 1 time(s). Last edit at 08/27/2010 08:45AM by Steve8x8.

Attachments: geo-tagimages (3.2 KB)  
Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: August 30, 2010 11:45AM

I'd like to add that I own an Oregon 300 "only" which doesn't have support for geotagged images (yet, I hope, since it's basically the same hardware as the 450 which has no camera but geotag support).
Therefore I *need* feedback whether this piece of code is useful at all, could be improved, etc.
Alternatively, I'd accept a donated 450/550 ;)

The script (in its latest version) will be available via my patch site soon.

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...

Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: September 10, 2010 10:11AM

The original poster apparently has registered to this forum only for asking a single question, and never been seen here since.
I don't own a GPSr with geotagging support (even with firmware release 3.90, Garmin still provides no useful image viewer, but I still hope for a fuse of x00 and x50 firmwares which would introduce tagging and a better image browser to my Oregon 300).
Apparently, I'm not alone... or rather, there's no one trying to test the stuff :( therefore I'll leave it on my server but will not continue working on it for a while.

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...

Options: ReplyQuote
Re: Howto download all pictures of a gpx file and adjust automatically GPS tag?
Posted by: Steve8x8 ()
Date: May 09, 2011 03:30AM

Although the q has been asked via PM, I suppose the thread starter isn't the only one interested in the problem.
Basically, there are several things:

- Get hold of the pictures.

Image galleries at geocaching.com carry the same GUID as the cache itself. Therefore, to access spoiler images for a given cache, one has to find out the GUID, and go to http://www.geocaching.com/seek/gallery.aspx?guid=$GUID.
Be careful, the gallery may consist of multiple pages.
Also, the gallery may contain log images - you have to decide whether you want them too, IMHO log pictures rarely provide helpful information (if they are properly understood as non-spoilers).
Extract "img.geocaching.com" <img src> URLs. Get them.

- Prepare image for geotagging.

Convert image to JPEG if in GIF or PNG format (convert).
If file doesn't contain EXIF information, add some (exif --create-exif).

- Check for, and possibly add, geotags.

Check for existing geotag (exif --ifd=GPS).
If the check didn't return anything, or a ThumbnailSize only:
Use the following commands to convert file $tmp0 into $tmp1
rm -f $tmp1
exiftool \
-q -q \
-o $tmp1 \
-makernotes:all= \
-exif:gpslatituderef="$LATR" -exif:gpslatitude=$LATV \
-exif:gpslongituderef="$LONR" -exif:gpslongitude=$LONV \
$tmp0 > /dev/null
where $LATR and $LONR are "N" or "S", or "E" or "W", respectively, and $LATV and $LONV are the _absolute_ degrees.

(- Check for success, as above.)

This all can be done in bash/awk/perl or whatever scripting language you prefer, using curl/wget or perl's WWW stuff to fetch files.

--------------------
My geo-* {patches,mirror,history} went offline Oct 1, 2010! Sorry guys...

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.