GdalTools — QGIS plugin for raster data processing

06.06.2010 13:07 ·  GIS  ·  qgis, plugins, gdaltools

GdalTools (or Raster Tools) is a plugin for the open source GIS QGIS. The main purpose of the plugin is to simplify the use of the GDAL command line utilities by providing the user with a graphical interface for the most common operations.

Initially, the plugin was developed by Faunalia, later other developers, including myself, joined them. Robert Szczepanek created nice icons for most of the tools, and the development of some features was sponsored by Silvio Grosso.

At the time of the first announcement (September 2009), the plugin provided only two tools: gdalbuildvrt and gdal_contour. Now the number of integrated tools is approaching 20.

Installation

There are two versions of the plugin:

Both versions are available from the Faunalia repository. To install the experimental version, it is necessary to enable experimental plugins in the Python Plugin Installer, otherwise, the stable version of GdalTools will be installed. Since the stable version of GdalTools is included in QGIS 1.5.0, users of this (and any later) version don’t need to install it manually. However, they can replace the stable version with the experimental version from the repository if desired or necessary.

To install the GdalTools plugin from the repository, follow the steps below:

  1. open the Plugin Installer (“Plugins → Fetch Python Plugins…”)
  2. go to the “Repositories” tab and add third-party repositories by clicking on the “Add 3rd party repositories” button
  3. go to the “Options” tab and enable experimental plugins (“Show all plugins, even those marked as experimental”)
  4. go back to the «Plugins» tab and find “Gdal Tools” in the list of plugins
  5. select corresponding row and press “Install plugin” button
  6. wait until the plugin is downloaded and installed
  7. restart QGIS when asked

The plugin requires GDAL/OGR and the corresponding Python bindings. If QGIS is installed via the OSGeo4W installer, the required packages are called gdal16 and gdal16-python. If you are a Windows Vista/Seven user, please note that error messages may appear, check the OSGeo4W bugtracker for a solutions.

Mac OS X users should open the GdalTools settings dialogue box after installing the plugin and specify the directory where the GDAL utilities are located.

GdalTools settings dialog
GdalTools settings dialog

How does it work

Each tool requires the user to specify the input data (this can be either a layer loaded into QGIS or a file on disk) and configure some of the tool’s parameters.

This information is then used to generate a command line for the appropriate GDAL utility, which is then executed.

Reprojection (warp) tool from GdalTools
Reprojection (warp) tool from GdalTools

The generated command is displayed at the bottom of the tool’s window. If desired, it can be copied and run directly from the command line. This can be useful if you need to use additional options that are not available via the GUI.

Available tools

GdalTools now includes the following tools:

⮜ Prev
Next ⮞