GRASS GIS categorical raster layers in QGIS

With the QGIS GRASS plugin, you can easily open a GRASS raster layer in QGIS. One disadvantage, however, is that if your GRASS layer has category labels, these will not show in the QGIS legend. See for example the landuse layer in the North Carolina data set,  opened in QGIS in the screenshot below.


It isn’t too much problem to define the labels in QGIS if you have few categories only, but what if your map in GRASS has many categories, all neatly labelled in GRASS. Sure you don’t want to add those category labels manually again in QGIS?

I don’t, so I wrote a small GRASS GIS addon, r.category.trim, that export the attribute table and colour table in GRASS GIS as a QGIS colour map file.

Continue reading “GRASS GIS categorical raster layers in QGIS”

QGIS 2.10 Pisa is out!

The new QGIS 2.10 (Pisa) has been released, with many great new features, tweaks and enhancements. Check out the changelog for the highlights (you’ll need some time, it is again an impressive list of improvements and new features).

The source code and binaries for Windows, Debian and Ubuntu are already available via the large download link on the QGIS home page.  More packages will follow as soon as the package maintainers finish their work.

A big thanks to the developers, this is again an impressive piece of work!

Another stab at creating a Tanaka-style contour map

In a recent post Anita Graser (aka underdark) showed how to create illuminated or Tanaka contours in QGIS using various functions available in the toolbox and some custom functions.

Here I want to explore a slightly different way to achieve the same, using GRASS GIS to compute the azimuth, brightness and line width. I’ll use the command line, but you can do the same using the menu in GRASS, or the corresponding GRASS functions in the QGIS processing toolbox.

Continue reading “Another stab at creating a Tanaka-style contour map”

QGIS live layer effects is propelling QGIS to the next level in the cartographic realm

This new feature created by Nyall Dawson and funded through crowd funding really sets new limits in terms of what is possible in terms of cartography. Check out Nyall’s post Introducing QGIS live layer effects! for a walk through of the new possibilities that this features brings to QGIS. It will be available in version 2.10, or if you can’t wait you download a QGIS development snapshot from the QGIS website to help in testing.

Sampling raster values at point locations in QGIS – an update

In a by now fairly old post I described how to sample raster values at point location in QGIS. The method I described used the ‘Point Sampling Tool’ addon. However, the function creates a new point layer, which only contains the values extracted from the raster layer. None of the fields in the original point layer is copied to the new one. It is possible to join the attribute table of the new vector point layer with the original attribute table afterwards using a spatial join as explained in that post. However, this will not work if your point data includes points with exactly the same coordinates.

Since I wrote that post, QGIS has come a long way. Continue reading “Sampling raster values at point locations in QGIS – an update”