QGIS Script Assistant Plugin Documentation

Similar documents
2 Initialize a git repository on your machine, add a README file, commit and push

Setting up GitHub Version Control with Qt Creator*

Package Manager. Managing Cisco VXC Manager Packages CHAPTER

You can download missing data from the course website, together with the codes R and python that we will run in this exercise.

Linking Reports to your Database in Crystal Reports 2008

Tutorial: How to Load a UI Canvas from Lua

Customizing DAZ Studio

Bitte decken Sie die schraffierte Fläche mit einem Bild ab. Please cover the shaded area with a picture. (24,4 x 7,6 cm)

owncloud Android App Manual

IBM Atlas Policy Distribution Administrators Guide: IER Connector. for IBM Atlas Suite v6

FOMOD Designer Documentation

Sample Spark Web-App. Overview. Prerequisites

MALWAREBYTES PLUGIN DOCUMENTATION

Getting started with Python

How Do I Inspect Error Logs in Warehouse Builder?

Class Accuracy QGIS Plugin

LearnOSM. PostgreSQL & PostGIS. Installing PostgreSQL and PostGIS. Reviewed

git-pr Release dev2+ng5b0396a

Lab 7c: Rainfall patterns and drainage density

Modeling and Simulation with SST and OCCAM

Copyright 2018 MakeUseOf. All Rights Reserved.

WordPress site Import/Export Procedure

Code Autocomplete Manual

The QuickCalc BASIC User Interface

Step by step to getting R installed on your computer

Chapter 4. Unix Tutorial. Unix Shell

Version Control System GIT

7/2/2013 R packaging with Rstudio Topics:

The Rock branching strategy is based on the Git Branching Model documented by Vincent Driessen.

Silk Performance Manager Installation and Setup Help

CS354 gdb Tutorial Written by Chris Feilbach

Introduction to Programming with Python 3, Ami Gates. Chapter 1: Creating a Programming Environment

Continuous Integration (CI) with Jenkins

POOSL IDE Installation Manual

Kivy Designer Documentation

Django File Picker Documentation

Spyder Documentation. Release 3. Pierre Raybaut

Image Management Guideline Managing Your Site Images

Github/Git Primer. Tyler Hague

G E T T I N G S TA R T E D W I T H G I T

Mehran Sahami Handout #5 CS 106A September 27, 2017 Downloading Eclipse

Getting Started with Team Coding Applicable to Toad for Oracle Suite 2016 (v12.9) and higher

Installing and Using Docker Toolbox for Mac OSX and Windows

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

SharePoint Designer Advanced

TangeloHub Documentation

FEEG Applied Programming 3 - Version Control and Git II

Chapter 7. Joining Maps to Other Datasets in QGIS

The software shall provide the necessary tools to allow a user to create a Dashboard based on the queries created.

User Defined Functions

Working with Attribute Data and Clipping Spatial Data. Determining Land Use and Ownership Patterns associated with Streams.

NVIDIA DEBUG MANAGER FOR ANDROID NDK - VERSION 8.0.1

Pandora Documentation

How to decrypt 3ds ROM s: This Guide is STRICTLY for 3DS s that are on firmware s I will go back and make this

HOW TO BUILD YOUR FIRST ROBOT

owncloud Android App Manual

Revision control. INF5750/ Lecture 2 (Part I)

Deploying SecPod Saner Agent Through Microsoft Active Directory

SOLIDWORKS PDM Taming the PDF Preview

What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;

How to create a Universal Jobmatch account

Upgrade Instructions for NetVoyant 7.0

nacelle Documentation

Workshare Connect. Desktop App

Mobile Speech Recognizer

Global Locking. Technical Documentation Global Locking

New Dropbox Users (don t have a Dropbox account set up with your Exeter account)

Advanced Content Manager 2 User Guide

SiberSafe S1000D Evaluation Guide

Effective Programming Practices for Economists. 7. Version Control, Part II: Git with a Shared Repository

Introduction to QGIS

PASSPORTAL PLUGIN DOCUMENTATION

A Second Look at DEM s

Installation & Configuration Guide Enterprise/Unlimited Edition

URL for staff interface (bookmark this address on staff computers):

This Quick Start describes how to use Bocconi Cloud Service, called Filr in the rest of the document, from your Windows desktop.

Advanced GIS Using GRASS to create SVF and LRM

HOW THE INTEGRATION WORKS HOW THE INTEGRATION WORKS INFOR CRM

When Microsoft releases new updates to firmware and drivers, the firmware and driver pack is updated for all Surface models.

Creating a new CDC policy using the Database Administration Console

Starting ParTEST. Select Start, Programs ParTEST ParTEST Enter your User Name and password

Outlook Integration. Installation & Configuration

flask-dynamo Documentation

Using SourceTree on the Development Server

Ten Things You ve Gotta Try in LogMeIn Rescue

WORKSHARE PROFESSIONAL 9 DOWNLOADING AND LICENSING GUIDE

Getting started with System Center Essentials 2007

Tutorial 1 - Run WOIS Workflow Using Data Selected on the HEP Webportal

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b

How to version control like a pro: a roadmap to your reproducible & collaborative research

Quantum GIS Basic Operations (Wien 2.8) Raster Operations

VoIPCortex PABX TAPI User Guide

T H E I N T E R A C T I V E S H E L L

Neehr Perfect Guide: Installing the Citrix Plugin

Azure Developer Immersion Getting Started

CONTINUOUS DELIVERY WITH EFFICIENT AUTOMATED TESTING IN CLOUD

Revision 1, September 29, 2011 Page 1

Enevita Platinum Series 2

Follow these instructions if you are working on a school/college computer that is part of the network.

Electronic Sales Platform User s Manual

Transcription:

QGIS Script Assistant Plugin Documentation Release 0.4.0 Daniel Silk Nov 07, 2017

Contents 1 Overview 3 1.1 Reload Scripts.............................................. 3 1.2 Test Scripts................................................ 3 1.2.1 The test list........................................... 3 1.2.2 Running a test.......................................... 4 1.2.3 Running all tests........................................ 4 1.2.4 Testing using Travis-CI..................................... 4 1.3 Add Test Data.............................................. 4 1.3.1 Adding shapefiles used in tests................................. 4 2 Configuration 5 2.1 The Settings Dialog........................................... 5 2.1.1 Default settings......................................... 5 2.1.2 User settings.......................................... 6 2.1.2.1 Don t reload tests setting............................... 6 2.1.3 Directory validation....................................... 7 2.1.4 Save confirmation........................................ 7 2.2 The Settings Configuration File..................................... 7 i

ii

QGIS Script Assistant Plugin Documentation, Release 0.4.0 This is a QGIS plugin with three helper tools for QGIS development purposes. Here it is in action - testing itself: To learn more, check out the feature overview and configuration guide below. Contents 1

QGIS Script Assistant Plugin Documentation, Release 0.4.0 2 Contents

CHAPTER 1 Overview This is a QGIS plugin with three helper tools for QGIS development purposes. 1.1 Reload Scripts Load / reload processing user scripts into QGIS from any existing directory. The Reload Scripts tool simply copies processing scripts from the configured directory to the QGIS processing scripts directory, and then reloads the processing toolbox in QGIS. If a script already exists with the same name, it will be overwritten without warning. 1.2 Test Scripts Run tests within QGIS in a way that makes them configurable for local and Travis-CI testing without any manual amendments. 1.2.1 The test list The test list is constructed by finding any file in the configured test directory with a file name starting with test_ and ending with.py. It does not (currently) check folders within the test directory. 3

QGIS Script Assistant Plugin Documentation, Release 0.4.0 Every time you select the dropdown to the right of the Test Scripts button, the test list reloads from the tests directory. So if you re switching branches in git, you ll always be running the tests from the same branch you ve checked out. 1.2.2 Running a test Select a test from the test list to run it. The QGIS Python Console will be opened (if it isn t already visible) to print test results. reload() is used to reload the test module. This allows the tests to be edited using an external text editor and then recompiled in QGIS. This functionality can be switched off in settings if it isn t required. Running a test will also apply that test as the default action for the Test Scripts button - to repetitively run the same test, there is no need to select it from the test list again and again, just click on Test Scripts after the first run. 1.2.3 Running all tests There is always an additional option in the test list to run all tests. This option collects tests in the same way that the test list is constructed and runs the lot. 1.2.4 Testing using Travis-CI The plugin repository contains an example of how to run these same tests using Travis-CI. Thanks to Boundless for making this possible using qgis-testing-environment-docker! 1.3 Add Test Data Add all of the test data referred to in a test with a click. 1.3.1 Adding shapefiles used in tests The Add Test Data tool checks the last test script that was run for references to.shp files. Any shapefile matches from the configured testdata directory are then added to the QGIS layer registry. 4 Chapter 1. Overview

CHAPTER 2 Configuration The Script Assistant plugin is configured using the settings dialog. The plugin is designed to hold multiple project configurations, so that it s easy to switch between development tasks. 2.1 The Settings Dialog 2.1.1 Default settings The plugin comes with one configuration pre-installed - this configuration allows the plugin to test itself. 5

QGIS Script Assistant Plugin Documentation, Release 0.4.0 On install, you can immediately select the Test Scripts button. 2.1.2 User settings To add a new Script Assistant configuration, change the name in the configuration combo box and then type in or select the appropriate settings in the dialog. Click Save to store the configuration. 2.1.2.1 Don t reload tests setting This setting turns off the use of reload() to reload test modules. It ll run tests faster but the test won t update if it has been edited in an external text editor. 6 Chapter 2. Configuration

QGIS Script Assistant Plugin Documentation, Release 0.4.0 2.1.3 Directory validation Directories displayed in red text cannot be found in the file system so are invalid. The Save action is unavailable if there are invalid directories. 2.1.4 Save confirmation If settings have been modified but not yet saved, an asterisk is displayed in the dialog title. If a dialog is closed in any way with unsaved settings, the user will be asked to confirm via the Save Confirmation dialog. If the user opts not to save, the settings entered into the settings dialog will still be used for the current QGIS session - but they won t be available in subsequent QGIS sessions. 2.2 The Settings Configuration File Settings are saved to a configuration file stored in the.qgis2/scriptassistant directory in the user folder (the exact location differs depending on operating system). If a group of users require similar configurations, the settings file can be shared between users. User directories will need to be amended. The settings file should generally be modified by changing settings in the settings dialog, not by directly editing it. It is provided in.ini format for convenience. 2.2. The Settings Configuration File 7