Dear colleagues,

I want to read the latitude/longitude data from jpeg pictures. In the properties of the jpeg file, one can read the GPS coordinates in case the picture was taken using a camera with built-in GPS. Now I would like to use a R function to read these geotag data from the file and store it in a data.frame or matrix or other R object.

1) I tried getWikiMedia.ImageInfo from the plotKML package, but that doesn't work, probably because it was built to only read files directly from Wikimedia.

## Not run:
imagename = "D:/R/IMG_5512.JPG"
x <- getWikiMedia.ImageInfo(imagename)
## End (Not run)

2) I downloaded the exiftool (http://owl.phy.queensu.ca/~phil/exiftool/ ). One can drag and drop a jpeg file onto the exiftool(-k).exe file. The command line opens and displays the metadata. However, I wish to read this data into a data.frame or matrix in R.

Any suggestions which function in which package could be used?

Thanks in advance for your help!


André


Ir. A.S.J. van Proosdij
PhD Student
t   +31 317 48 1198
e  andre.vanproosdij@wur.nl<mailto:andre.vanproosdij@wur.nl>

Naturalis Biodiversity Center, section NHN
Biosystematics Group, Wageningen University
Gen. Foulkesweg 37, 6703 BL Wageningen, the Netherlands

www.bis.wur.nl<http://www.bis.wur.nl/>


	[[alternative HTML version deleted]]

