Category: NZTekonverse -> Scripting
-
Python Scripting [4A]: Exif Based Image Renaming
This is now a new scripting project I am starting for Python. I need this script to rename all my photos off the camera, replacing the use of IrfanView which I used on my Windows 10 computer. Whilst I still have that computer and the software, I am looking to do something with Python scripting…
-
Python Scripting [3F]: Layer Fractional Segments for NZ Rail Maps 6
Today’s little bit of fun and games has been to change the script so that it can read in a list file and process a list of source layers and produce the world and auxiliary files for them. Last night I discovered there was some additional aerial photos available for OtiraNorth area, for which I…
-
Python Scripting [3E]: Layer Fractional Segments for NZ Rail Maps 5
I made a lot of progress on this on Wednesday, mainly due to dropping nearly everything else and pushing on to finish it. After testing it, which so far has worked well, I decided to add an extra step to the workflow. The source layer (base layer) is a jpg file and we are making…
-
Python Scripting [3D]: Layer Fractional Segments for NZ Rail Maps 4
Continuing from our last post, we now want to find tile segments that need world files written for them and generate those files. The code to do this (from the steps outlined previously is: Strip the extension off the base file (92XJ7-92MKF.jgw) so that we get 92XJ7-92MKF: baseNameBase = os.path.splitext(baseName)[0] Split the filename at the…
-
Python Scripting [3C]: Layer Fractional Segments for NZ Rail Maps 3
Last time we had a look at how to read data from our files and store it in a list. This time we are going to get that data and perform the calculations we need on it. First thing is to convert the numbers read out as strings to floats. The numbers we need are…