prepair for Processing

prepair for Processing integrates the prepair and pprepair tools into the QGIS Processing framework, allowing users to easily repair invalid geometries and produce valid planar partitions.

Installation

The plugin is available via my repository.

To install it, please follow these steps (for more details, see the QGIS User Guide):

  1. Start QGIS.
  2. Go to PluginsManage and Install Plugins….
  3. Go to the Settings tab and click Add… to add a new repository.
  4. Enter repository name, e.g. “Alex Bruy’s plugins”.
  5. Enter the repository URL https://plugins.bruy.me/plugins.xml.
  6. Click OK to close the Repository details dialog.
  7. Go to the All tab.
  8. Search for prepair for Processing, select the plugin in the list and click Install Plugin.

Usage

Once installed and enabled, prepair for Processing is registered as a Processing provider and its algorithms are added to the Processing toolbox under the “prepair” group.

prepair algorithms in the Processing toolbox
prepair algorithms in the Processing toolbox

You may need to configure the provider before using its tools. Open QGIS options from the menu “Settings → Options” and go to the “Processing” tab. Expand the “Providers” group and find “prepair” sub-group, here you will find all settings related to the prepair provider.

prepair for Processing settings
prepair for Processing settings

It is necessary to tell the plugin where to find prepair and pprepair executables. If these settings are left blank, the plugin will assume that the tools are already added to the system’s PATH environment variable and are accessible by name. When done, save settings by pressing OK.

The plugin provides two tools suitable for different cleaning goals:

The algorithms can be used as any other Processing algorithm: in standalone mode, as a batch process, as part of models and scripts, or using the qgis_process command line tool. Please refer to the QGIS User Guide to learn how to use Processing tools.

Reporting bugs

Please report bugs and submit feature requests via bugtracker.