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 hyphen… Continue reading Python Scripting [3D]: Layer Fractional Segments for NZ Rail Maps 4

Python Scripting [3B]: Layer Fractional Segments for NZ Rail Maps 2

Yesterday we looked at how to collect command line parameters easily in a Python script. Today we need to turn the parameters into filenames and then read their contents to memory. First thing is to get the arguments into variables we can refer to and manipulate. This is pretty simple as the arguments are stored… Continue reading Python Scripting [3B]: Layer Fractional Segments for NZ Rail Maps 2