Category: NZTekonverse -> Scripting

  • HOWTO: Fix “python: no such file or directory” error with youtube-dl or other scripts

    If you use Python scripts or apps that depend on python to run, you may see an error message similar to the following on Debian Bullseye (possibly other distributions or versions as well). This occurs because the python application has been replaced by python3 in Debian Bullseye and so the system cannot find anything simply…

  • Using Qgis Python Scripting in the NZ Rail Maps Project: 3 – Volumes Formatting

    The third area of Qgis scripting for the NZ Rail Maps project is specifically focused on formatting the Volumes layout images and is used to generate a subtitle displayed in the title bar of each Volumes image. This subtitle informs the user of the year of each aerial image view that is part of the…

  • Using Qgis Python Scripting in the NZ Rail Maps Project: 1 – WebMaps

    Good evening. As part of the development of the NZ Rail Maps Project, recently custom Python scripting has been incorporated into the main window GUI and Composer / Layout to speed up processing of various aspects. This is summarised in different sections below. In order to create the content of the NZRM WebMaps site, various…

  • Simple PHP Photo Gallery For NZ Rail Maps Volumes Site

    The New Zealand Rail Maps Project aims to create free maps of the present and past national public railway network, which are produced and distributed by a variety of means, through several web sites. One of these is the Volumes site, and it is intended to distribute individual images that each represent a small part…

  • Install mb-util on Debian

    I use a Python script called mb-util to build the mbtiles files for the NZ Rail Maps webmaps site. It takes the raw tiles and builds what is effectively a SQLite database that encapsulates the millions of little tiles into one file, which is much easier to handle for file storage and uploading, although slightly…