No Support => Feature requests => Topic started by: SASniper on August 17, 2005, 05:29:48 am

Title: Geotag images / Google Earth
Post by: SASniper on August 17, 2005, 05:29:48 am
Would it be possible to have a field for geo-tagging photos?

This would be a fantastic feature when combined with something like Google Earth. If combined properly, you could view thumbnails of your images at the location they were taken!!! It's sort of been done already with Flickr gallery, but it would be nice to have something private.

Title: Re: Geotag images / Google Earth
Post by: Joachim Müller on August 17, 2005, 08:18:19 am
good idea, although it shouldn't go into the core code, but as a plugin imo.
Title: Re: Geotag images / Google Earth
Post by: naxtor on August 17, 2005, 03:16:36 pm
with you can add note using google maps api but the problem is you can only use USA or UK place  :-[ :-\\
Title: Re: Geotag images / Google Earth
Post by: SASniper on August 17, 2005, 10:14:27 pm
GauGau ... is the EXIF support in the core code? I think EXIF has a specific place for a geo-tag. Perhaps it should go there? The disadvantage would be that you probably don't have easy access to the EXIF info ... as if it were in the db? or do you?

If not in core, then a plugin would be great! Combined with naxtor's idea, if the tag was written to the db, you could pull a lat/long and generate a Google map thumbnail for each image too  :o
Title: Re: Geotag images / Google Earth
Post by: Joachim Müller on August 18, 2005, 10:49:39 am
EXIF support is in the core code, but I haven't seen a geotag in it. EXIF support has even been improved in cpg1.4.x..
Title: Re: Geotag images / Google Earth
Post by: kenpty on October 21, 2005, 07:13:38 pm

Hello everybody!

I'll be interested in working in such a mod but has no experience creating them. Any help would be great.

What I'm doing right now is quite cumbersome:

-Identifiying the place using Google Earth
-Extract the coordinates from the kmz file
-Using WWMX Location Stamper software update the EXIF Header with the geotags
-Upload the pictures to my gallery

Next step would be hacking the code in the coppermine EXIF reader to pull the location and store in a table so I can use that to create a link either to Google earth as a autogenerated kmz file or to Google maps.

But that doesn't solve updating the EXIF headers already in the Gallery (Unless I download all of them an process them with the Locator Stamper offline)

Would be great being able to mark the location as part of the upload process and then get Coppermine to update the EXIF headers.

Title: Re: Geotag images / Google Earth
Post by: Loïc on December 24, 2005, 12:26:48 pm
Something simple has been done by mab (;u=24831) and the code is shown here:

It's in french so if you need a translation of some part of the text, ask for it here and I'll do it...

It works ok in my own gallery:

I hope this will help...
Title: Re: Geotag images / Google Earth
Post by: ecto on December 24, 2005, 01:06:18 pm
I haven't heard the word "GeoTag" before, but I know Exif supports a whole lot of GPS tags.

"In addition to the attribute information indicated as mandatory in the TIFF standard, this Exif
standard adds the TIFF optional tags that can be used in a DSC or other system, Exif-specific tags for recording
DSC-specific attribute information, and GPS tags for recording position information."

These GPS tags are stored the same way as Exif tags, i.e. it wouldn't be hard to implement insertion/extraction of these tags.

Code: [Select]
GPS tag version - GPSVersionID
North or South Latitude - GPSLatitudeRef
Latitude - GPSLatitude
East or West Longitude - GPSLongitudeRef
Longitude - GPSLongitude
Altitude reference - GPSAltitudeRef
Altitude - GPSAltitude
GPS time (atomic clock) - GPSTimeStamp
GPS satellites used for measurement - GPSSatellites
GPS receiver status - GPSStatus
GPS measurement mode - GPSMeasureMode
Measurement precision - GPSDOP
Speed unit - GPSSpeedRef
Speed of GPS receiver - GPSSpeed
Reference for direction of movement - GPSTrackRef
Direction of movement - GPSTrack
Reference for direction of image - GPSImgDirectionRef
Direction of image - GPSImgDirection
Geodetic survey data used - GPSMapDatum
Reference for latitude of destination - GPSDestLatitudeRef
Latitude of destination - GPSDestLatitude
Reference for longitude of destination - GPSDestLongitudeRef
Longitude of destination - GPSDestLongitude
Reference for bearing of destination - GPSDestBearingRef
Bearing of destination - GPSDestBearing
Reference for distance to destination - GPSDestDistanceRef
Distance to destination - GPSDestDistance
Name of GPS processing method - GPSProcessingMethod
Name of GPS area - GPSAreaInformation
GPS date - GPSDateStamp
GPS differential correction - GPSDifferential
Title: Re: Geotag images / Google Earth
Post by: Tranz on January 21, 2006, 09:15:37 pm
Here's a mod I did to generate a map of locations using Google Maps API:

There is additional code if you want a small map in displayimage.php for each file.