OnroerendErfgoed / brdrQ

Autocorrectborders, a QGIS-processing script for aligning thematic borders to reference borders.
MIT License
2 stars 0 forks source link
gis qgis script

#

brdrQ: Autocorrectborders, a QGIS-processing script for aligning thematic borders to reference borders. (for QGIS v3.34.8 or higher)

DOI

Quick links:

Description

brdrQ is a QGIS-processing script that searches for overlap relevance between thematic borders and reference borders, and creates a resulting border based on the overlapping areas that are relevant.

The purpose of this script is to automatically adjust thematic boundaries (polygons) on a reference layer (polygons) based on a 'relevant distance'. This parameter is used in the algorithm to determine where the boundaries are effectively adjusted to the reference layer, or where the original boundary is preserved. Thus, the adjustment of the boundaries of resulting geometries and original geometries is at most as large as the 'relevant distance'

Installation

You can install the latest release of brdrQ from GitHub.

Pre-requisites

Installation-steps

The QGIS script 'autocorrectborders.py' can be loaded into the QGIS Processing Toolbar. Follow the steps below to make the script available in QGIS Processing Toolbar

  1. Open the Processing Toolbox from the bar at the top, so that Processing Toolbox appears on the right side of the screen
  1. Choose: 'Add script to Toolbox...' (see red arrow) and select the script 'autocorrectborders.py'

(While adding the script to the toolbox, the necessary python-dependencies will be installed if not yet available on your machine. If dependencies need to be installed, a screen like below can pop up. Please wait until installation is finished. The screen will close automatically after installation.)

  1. Close QGIS, and (re-)open QGIS

  2. The tool 'Autocorrectborders' is now available in the Processing Toolbox under 'brdrQ'

  1. Double-click on the 'Autocorrectborders' tool, and the tool opens:

Getting started (Quickstart)

To start the calculation, the following steps are sufficient:

==>CLICK 'RUN' : The tool processes the data and the output is created and displayed in the TOC of QGIS

Manual

The various INPUT & OUTPUT parameters are explained in more detail below. Here are some useful tips, assumptions and limitations when using the script

STANDARD INPUT PARAMETERS

ADVANCED INPUT PARAMETERS

OUTPUT

The script generates several output layers in the layer overview:

The name includes which 'RELEVANT_DISTANCE (X)' and 'OD-STRATEGY (Y)' is used

TIPS, ASSUMPTIONS & LIMITATIONS

This allows you to gain insight into the 'deviation' and which RELEVANT_DISTANCE value can best be applied.

Motivation & citation

The script uses brdr, a python-package to align thematic borders to reference borders.

Development

A released python-package of is automatically installed when installing the brdrQ-script.

A non-released (development-) version of brdr can be installed as QGIS-Python-site-package by:

f.e. 'C:\Program Files\QGIS 3.38.1>python -m pip install C:\x\x\x\x\brdr'

the brdr-package is installed in a user-directory:

f.e. 'C:\Users\x\AppData\Roaming\Python\Python312\site-packages'

Comments and contributions

We would love to hear from you and your experiences with brdrQ or its sister project brdr. The discussions forum is the place to be when:

If you have discovered a bug in the brdrQ library you can report it here:

https://github.com/OnroerendErfgoed/brdrQ/issues

We try to keep the list of issues as clean as possible. If you're unsure whether something is a bug, or whether the bug is in brdrQ or brdr, we encourage you to go through the discussions forum first.

Acknowledgement

This software was created by Athumi, the Flemish data utility company, and Flanders Heritage Agency.

https://athumi.be/en/ https://www.onroerenderfgoed.be/flanders-heritage-agency