R/GPS.pt2photo.R

Defines functions GPS.pt2photo

Documented in GPS.pt2photo

GPS.pt2photo <- function(photo.pos ="d:/photo", exiftool.pos= "D:/software/EXE", GPS.point)
{
    setwd(photo.pos)
    file.copy(sprintf("%s/%s", exiftool.pos, "exiftool.exe"), 
        getwd())
    file <- dir(pattern = ".jpg|.JPG")
    cmd <- sprintf("exiftool -GPSLatitude=%f -GPSLongitude=%f \"%s\"",GPS.point[2],GPS.point[1],file)

    lapply(cmd, shell)
}
liuguofang/photoGPS documentation built on Nov. 8, 2019, 7:08 p.m.