Category: NZTekonverse -> Scripting

  • Python Scripting [7A]: Change File Modification Time on Map Images

    This scripting project is a part of the NZ Rail Maps project. The aim is to change file modification times for a group of maps so that they follow a certain sequence when imported into Google Photos. In the NZ Rail Maps project, maps published at what is defined as the “Basic” level are produced…

  • Python Scripting: Planned Scripting Projects Update

    Back in February this year I set out a list of planned scripting projects following my acquisition of Python programming skills. The sequence of planned or implemented projects to date is: NZ Rail Maps project script to copy a set of GIS raster layer files based on reading a QLR file produced by Qgis. Currently…

  • Python Scripting [6D]: Layer Sidecar Duplication & Renaming for NZ Rail Maps 4

    Since we last looked at this topic a couple of months have gone by with everything working as expected when the duplicate script is used, both for duplicating sidecar files for layers that are the same size as the original and ones where the destination layer has been increased in size. The former is the…

  • Python Scripting [4D]: Exif Based Image Renaming 4

    After testing the Exif renaming script for the past couple of weeks I have added a piece of code to check for collisions and rename any file that collides with an existing filename. With Exif data, the most likely cause of a filename collision is when a camera is set to shoot continuously and it…

  • Python Scripting [4C]: Exif Based Image Renaming 3

    After letting this one slide for quite a while, I picked it up again yesterday and have completed most of the coding. This is the full code to date (barring any further modifications found to be needed after testing). The script is run from the directory that is to be acted upon and takes no…