PDOK services plugin: nieuwe services EN PDOK Locatieserver!

A short post in Dutch, to let us dutchies know of a new version of the ‘PDOK services plugin’ which eases the use of our national OWS services.
If you want you can install it, and for example view the different soli types of The Netherlands:

De Bodemkaart 1:50000 als WMS en WFS
De Bodemkaart 1:50000 als WMS en WFS

Another nice service is the 25cm Aerial Map of The Netherlands (Luchtfoto 2016 Ortho 25cm RGB).
Happy QGIS’ing all!

3D data visualiseren met expressies

How to visualize point data with Z values? Let’s say: we have data about noise pollution in multi-storey buildings. The point data (apartments) looks like this:
selection_005The attribute table looks like this:
selection_004We see X and Y coordinates, and a Z (height) value. The DB column gives the actual noise data, which we want to visualize. How to do this?
One idea was to use diagrams. QGIS, however, gives only pie charts and histograms, which don’t satisfy in my case.
Another idea was the Point Displacement option in the styling of the layer. This didn’t work out well either, because I couldn’t arrange the points properly. I wanted to place them above each other, with the highest Z value on top.
The idea that did work out was to use Offset X,Y in the Symbol selector:
symbol-selector_007Using this, you can offset the marker symbols in horizontal (X) and vertical (Y) direction. Instead of just using X and Y values, you can also use an expression. Using an expression, you get the possibility to use values in the attribute table for changing the X and Y offset value for each point. That gave me the solution!
After a lot of trying I used this expression:
‘0, ‘|| to_string(-1 * “z”)
Let me explain. “z” is the height value I want to use. A positive Z value gives the marker a downward offset. I want it upward, so I took the negative of Z. Because the result of the expression has to be a string value, I used the to_string expression to do so. Because the expression changes both X and Y, and I didn’t want to change the X value, I used ‘0, ‘ in the beginning of the expression, and concatenated (||) the 2 expressions.
Here’s the result:
qgis-2-14-11-essen-verschovenpuntenmetexpressies_010Now you see all apartments in the different blocks: the markers at the bottom are the lowest in the block, at the top are the highest apartments. There are some gaps, because the data were incomplete. The small blue points indicate the original X and Y coordinates.
The possibilities of these expressions are myriad. And with adding text labels, you can use these expressions too, to place them exactly where you want (in the markers, beside the markers, whatever).
Good luck!

Georefereren van een medaille

Yesterday I ran the half marathon of Zwolle wearing a hat with the previous QGIS logo. My time was not so special (2:08:47) but the medal I earned was. It shows a simple map of the city of Zwolle.

original medal of Zwolle half marathon 2017
De originele medaille van de halve marathon van Zwolle.

You can see some buildings but which ones?
I decided to georerence the medal and add a map using QGIS.

  1. First I scanned the medal to create a PNG image.
  2. Next I georefererence the image using Georeferencer GDAL plugin that is delivered with every QGIS installation but needs to be activated using the Plugin manager. In het menu Raster you can now start the georeferencer tool.
  3. Then I added the layer “lufolabels” using the PDOK plugin that you can easily install and download using the Plugin manager.

The result you see below.
medal-half-marathon-zwolle-on-map
The buildings are: Broerenkerk, Peperbus, Grote St. Michaelskerk, De Fundatie and Sassenpoort.
Regards,
Diethard Jansen

Gray is the new Black

Sometimes I prefer to publish my map in gray instead of black. But all newly added QGIS composer items are set to black by default.

Turn Gray dialog
Turn Gray dialog

For changing the colors more easily and rapidly I created the “Turn Gray” plugin. By default it changes all foreground colors (labels and outlines) to gray. But you are free to choose more cheerful colors too. And for the background as well.
Right now not all composer items are supported, but the map, legend, labels and scale bar do. Tables, arrows and map grids will have to wait.
I hope others will be happy to use this tool as well, that’s the idea behind open source!
Here some examples:
original map composer
original map composer

turned to gray (default plugin values)
turned to gray (default plugin values)

turned to red foreground and lime green background
turned to red foreground and lime green background

Nieuwe release QGIS + boek!

Last week not only QGIS 2.14.0 Essen was released but also a great book “QGIS Map Design” based on this new version of QGIS.
Voorpagina boek QGIS Map Design
A release of QGIS is special but this release concerns an announced LTR release.  QGIS 2.8.7 is the current LTR version in which al bugs found between 2.8 and 2.14.0 have been solved in 2.8 as well.
A (Long Term Release) LTR version has two major advantages. It is very stable and in time becomes even more stable and the functionality remains the same  over a longer period of time so instructions books and courses based on an LTR version can be used longer. When QGIS 2.16 appears, we will have a new LTR version of  QGIS 2.14.1! The name QGIS Essen refers to the city that hosted the hackfest twice. I was there and they were very inspiring and productive.
After QGIS 2.14 will be started with building QGIS 3 which will be a tremendous effort. QGIS 2 is now build on Qt 4 and Python 2.7. QGIS 3 will be build on Qt 5 and Python 3.5. Work has been started a long time ago with putting an excellent test framework in place with lots of unit tests.
Although currently QGIS 2.14 is not yet the QGIS LTR version, new manuals, books and instructions should be written on this new version of QGIS!
The first book that is based on QGIS 2.14 is already out! The book QGIS Map Design is written by Anita Graser & Gretchen N. Peterson and issued by Locate Press of Gary Sherman (The founder of QGIS). This is the first book focused on how to use the possibilities QGIS offers to create stunning maps.
The book presents many “recipes”, practical examples how to create a certain kind of map.
I could not wait an bought the book in PDF format counting 200 pages directly from Locate press. Remarkable, to buy the book you can use bitcoins as well besides using a creditcard!  You will receive an online personalized copy with a copyright statement underneath every page. Mine reads:
“Copyrighted material generated for Diethard Jansen on 2016-03-02 do not distribute”
I expect to have a lot of pleasure reading this book and using QGIS 2.14!
What has QGIS 2.14 to offer? Please have a look at the List of visual changes.