Batch rename of geotagged photos taken inside a shapefile

I have successfully created new name for the fid, but I have difficulties to pass forward.

enter image description here

Everything went smooth, until the Python. I get this:

exec(Path('C:/Users/XXX/AppData/Local/Temp/tmpjtb99y58.py').read_text()) Traceback (most recent call last): File "C:\OSGeo4W\apps\Python39\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "", line 8, in FileNotFoundError: [WinError 2] The specified file cannot be found.: 'C:\XXX\XXX\XXX\pics\WIN_20220615_11_57_21_Pro.jpg' -> 'C:\XXX\XXX\XXX\pics\3972_0.jpg'

I can be way off, looking like, that it is trying to find non-existent already renamed files on the folder?

First I got different and much longer (mad at myself did not take a note) error but once I went for another go, I got the above. Glimpse at the folder, no renaming happened so far. Where am I hacking wrong. Sorrie about theese rookie askings, but here we are learning...! :D

Ok, here is the new picture showing requested fields (some fields blurred for security, photo and directory have same path)

But now I am greatly overwhelmed. I just went into the folder, and like magic, all pictures were now renamed. I have not re-tried running the script after the initial posting of this question.

enter image description here

  • Please add a picture showing the field named "photo" and "directory"
    – Mayo
    Sep 2, 2022 at 12:53


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.