Category: NZTekonverse -> Qgis
-
Python Scripting [1C]: Scripting to copy map aerial layers 3
So I spent a bit more time completing the script, which now looks like this: import glob import os import shutil import xml.etree.ElementTree as ET tree = ET.parse(‘/home/patrick/Sources/CopyFiles/Source/layers.qlr’) root = tree.getroot() for layer in root.iter(‘layer-tree-layer’): sourcename = layer.get(‘name’) print(“Layer: ” + sourcename) sourcepath = “/home/patrick/Sources/CopyFiles/Source/” + sourcename + “.*” #print(fpath) …
-
Python Scripting [1B]: Scripting to copy map aerial layers 2
So as I said at the end of the last post, I am learning to script in Python. Which is turning out to be breathtakingly simple and easy to do. I remember that I was going to do this script originally in Python then ended up doing it in Powershell. Why I did that at…
-
Python Scripting [1A]: Scripting to copy map aerial layers 1
In my arsenal of computers I have one low spec one that still runs Windows. Even with all the stuff I have for Linux, there are still a handful of tasks that use Windows only software, although this has diminished to the point that this computer often doesn’t get turned on for weeks at a…
-
Computing resources optimisation [2B]
Last time I wrote a post in this series it was looking at upgrading some of the hardware that I have. This time it is looking at task separation, or in another way, using mediapc to do some stuff like I have looked at previously. This keeps coming up because I have four computers and…
-
Qgis functions for labels
One of the great things about Qgis is being able to use expressions in a range of things. This is just a little bit about using a function to combine various fields together to make a caption on a label of a feature. In NZ Rail Maps I have features called Locations which are a…