how do I extract GPS coordinates from the EXIF metadata of a JPEG?

6,562 views
Skip to first unread message

nicholas....@tmr.qld.gov.au

unread,
Jan 18, 2011, 7:38:24 PM1/18/11
to mapi...@googlegroups.com

Hello Mappers,

I have just acquired a Lumix camera with a built in GPS.

How do I extract GPS coordinates from the EXIF metadata of a JPEG?

I would like to eventually have an automatic process for building a points dataset in mapinfo representing the locations of photos.


Kind Regards,

Nicholas Lawrence

Geographic Information Systems Coordinator
| Geospatial Technologies
Engineering & Technology / Design, Environment & Stewardship
Division | Department of Transport and Main Roads



Floor 6 | Spring Hill Office Complex | 477 Boundary Street | Spring Hill Qld 4000
GPO Box 1412 | Brisbane Qld 4001

P:
(07) 38342477 | F: (07) 38342998
E:
nicholas....@tmr.qld.gov.au
W:
www.tmr.qld.gov.au
Tomorrow's Queensland: strong, green, smart, healthy and fair – www.towardQ2.qld.gov.au

P
| Please consider the environment before printing this email

***********************************************************************
WARNING: This email (including any attachments) may contain legally
privileged, confidential or private information and may be protected by
copyright. You may only use it if you are the person(s) it was
intended to be sent to and if you use it in an authorised way. No one
is allowed to use, review, alter, transmit, disclose, distribute, print
or copy this email without appropriate authority.

If this email was not intended for you and was sent to you by mistake,
please telephone or email me immediately, destroy any hardcopies of
this email and delete it and any copies of it from your computer
system. Any right which the sender may have under copyright law, and
any legal privilege and confidentiality attached to this email is not
waived or destroyed by that mistake.

It is your responsibility to ensure that this email does not contain
and is not affected by computer viruses, defects or interference by
third parties or replication problems (including incompatibility with
your computer system).

Opinions contained in this email do not necessarily reflect the
opinions of the Department of Transport and Main Roads,
Maritime Safety Queensland or endorsed organisations utilising
the same infrastructure.
***********************************************************************

 

Noli Sicad

unread,
Jan 18, 2011, 8:02:46 PM1/18/11
to mapi...@googlegroups.com, nicholas....@tmr.qld.gov.au
Hi Nicholas,

Visit this website:

http://www.drewnoakes.com/drewnoakes.com/code/exif/

And have a look at Languages other than Java, the python and C#, looks
interesting.

* Ferret Renaud has ported this library to C#
* exifdump.py for Python

Noli

On 1/19/11, nicholas....@tmr.qld.gov.au

> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:
> http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page at
> http://groups.google.com/group/mapinfo-l?hl=en
>

Timothy Mashford

unread,
Jan 18, 2011, 8:50:26 PM1/18/11
to mapi...@googlegroups.com
Hi Nicholas,
 
I posted this tool + code a few months ago, when I also got a Lumix ZS7/TZ10. It extracts the GPS coordinates, and builds a point file with hotlinks to the original JPG images. It seems to work well so far!
 
Just download + unzip ExifTool from http://www.sno.phy.queensu.ca/~phil/exiftool/ and place it in the same folder as the MBX. You'll also have to rename the file from 'ExifTool(-k).exe' to 'ExifTool.exe' i.e. remove the (-k) from the filename.

Tim Mashford

--
MB_EXIFTOOL.MB
MB_EXIFTOOL.MBX

911mapper

unread,
Jan 18, 2011, 8:50:59 PM1/18/11
to MapInfo-L
Try
oPanda - www.opanda.com
irfanview - www.irfanview.com

basically it is a real pain in the back side of mule.
but these work well

-Trey Pattillo aka 911mapper

On Jan 18, 6:38 pm, nicholas.g.lawre...@tmr.qld.gov.au wrote:
> Hello Mappers,I have just acquired a Lumix camera with a built in GPS.How do I extract GPS coordinates from the EXIF metadata of a JPEG?I would like to eventually have an automatic process for building a points dataset in mapinfo representing the locations of photos.
>
>
> Kind Regards,
> Nicholas Lawrence
> Geographic Information Systems Coordinator| Geospatial Technologies
> Engineering & Technology / Design, Environment & StewardshipDivision | Department of Transport and Main RoadsFloor 6 | Spring Hill Office Complex | 477 Boundary Street | Spring Hill Qld 4000

college.atlas

unread,
Jan 19, 2011, 1:14:12 AM1/19/11
to MapInfo-L
Similar to Tim. I used EXIFUTILS and used the DOS batch functionality.

I'm working on a DLL at the moment so I don't have to rely on 3rd
party tools and can call the functions directly.

On Jan 19, 12:50 pm, 911mapper <mil...@wap3.com> wrote:
> Try
> oPanda -www.opanda.com
> irfanview -www.irfanview.com
>
> basically it is a real pain in the back side of mule.
> but these work well
>
> -Trey Pattillo aka 911mapper
>
> On Jan 18, 6:38 pm, nicholas.g.lawre...@tmr.qld.gov.au wrote:
>
>
>
>
>
>
>
> > Hello Mappers,I have just acquired a Lumix camera with a built in GPS.How do I extract GPS coordinates from the EXIF metadata of a JPEG?I would like to eventually have an automatic process for building a points dataset in mapinfo representing the locations of photos.
>
> > Kind Regards,
> > Nicholas Lawrence
> > Geographic Information Systems Coordinator| Geospatial Technologies
> > Engineering & Technology / Design, Environment & StewardshipDivision | Department of Transport and Main RoadsFloor 6 | Spring Hill Office Complex | 477 Boundary Street | Spring Hill Qld 4000
> > GPO Box 1412 | Brisbane Qld 4001
> > P:(07) 38342477 |F:(07) 38342998
> > E:nicholas.g.lawre...@tmr.qld.gov.au

Cummings, Mike

unread,
Jan 19, 2011, 11:14:21 AM1/19/11
to mapi...@googlegroups.com

nicholas....@tmr.qld.gov.au

unread,
Jan 19, 2011, 6:10:01 PM1/19/11
to mapi...@googlegroups.com

Thanks for all the suggestions.

At the moment I'm looking at a small bit of software called jhead.exe

http://www.sentex.net/~mwandel/jhead/

which is a command line tool that interrogates a jpeg file and outputs a text file with the exif metadata.

But I'll look at your other suggestions as well.

Reply all
Reply to author
Forward
0 new messages