Archive

Yearly Archives: 2013

This is the first post in a series dedicated solely to Print Composer in QGIS 2.0 which you can already admire in recent nightly builds.

Guide lines & snapping for user-friendly map element arrangement

Arranging map elements has never been easier: Elements can be moved as freely as before but now they will automatically try to align with other elements on the page or the page borders. Additional red guide lines help interpret the snapping behavior.

printcomposer_guides

Did you know that there is a version of ColorBrewer that does not require Flash?

Enjoy! Pure Javascript and zero loading times: http://colorbrewer2.org/js/

colorbrewerjs

Group Stats is a plugin for QGIS which makes it easy to calculate statistics for feature groups in a vector layer. Note that the plugin is still marked “experimental” so you have to allow experimental plugins in order to install it. I tried this plugin for the first time today and decided to write this post because it didn’t seem immediately obvious how to use it.

The plugin button is added to the vector toolbar and of course you can access it via vector menu.

groupstatsicon

The example I want to show is: How to calculate the total area of each Corine Land Cover (CLC) class per state.

corineAT

After adding state information to the CLC datasets by intersecting CLC and state geometries from Natural Earth we can get started with Group Stats.

groupstats

The big area on the left will display the results. The input fields are on the right. The general idea is to drag and drop fields and/or functions into the “columns”, “rows” and “values” sections. (Double-clicking field names does not do anything.) To remove fields again, you have to drop them back into the field list.

To calculate the total area of of each Corine Land Cover (CLC) class per state, I chose land cover classes as columns, state names as rows and sum of areas as values:

groupstatsclc

It’s also possible to add multiple functions in the columns/rows input sections to calculate different statistics at once:

groupstats_functions

Group Stats can be used in many cases that otherwise require a Spreadsheet software. The results can be exported to CSV easily. Usability could certainly be improved by allowing common interactions such as removing fields by pressing the delete key or adding fields by double-clicking.

and thank you for a great 2012!

The view counter shows a staggering 250,000 views for last year. If that isn’t a reason to celebrate!

Here’s a quick recap with the top ten posts last year which were split between the two main topics pgRouting and QGIS:

  1. A Beginner’s Guide to pgRouting
  2. Table Joins – A New Feature in QGIS 1.7
  3. How to Specify Data Types of CSV Columns for Use in QGIS
  4. QGIS Server on Windows7 Step-by-step
  5. Osm2po Part 2 – PgRouting on OSM the Easy Way
  6. An osm2po Quickstart
  7. QGIS Server on Ubuntu Step-by-step
  8. Converting MXD to QGIS Project File
  9. Stamen Maps for QGIS
  10. Mapping Density with Hexagonal Grids

All the best for 2013!