3D visualization of Data in QGIS

Well, this is a topic that I have always wanted to write about but have been a little bit reluctant.I think this has been attributed to the fact that I didn't find people who wanted to use this feature.Last week, I found someone who really wanted this in their project.Here is the thing, if you want to have a 3D view of your data, QGIS provides an out-of-the-box plugin (Qgis2threejs) that really helps us in doing this.Take a look.
Load you data in QGIS canvas.In my case am using data for Nairobi buildings with a height attribute.

Buildings layer overlay
 We will be creating a 3D view of our buildings as an overlay on OpenStreetMap baselayer.

Launch the Qgis2threejs plugin from the Web Menu.(Web > Qgis2threejs > Qgis2threejs) if you have Qgis2threejs intsalled.
If not go to Plugins Menu > Manage and Install Plugins and search for Qgis2threejs and install it.
Manage and Install Plugins window

Launch the Qgis2threejs window to set parameters for the visualization.
Qgis2threejs window

In this window click on polygon and check the BuildingsCBD layer.
On the "Object type" select Extruded .The layer will have some heights.
In the style section set the "Height" option to our HEIGHT attribute for the layer.
In the feature section leave it as default (Features that intersect with map canvas extent)

Browse to save the output file path and click Run.
The results will be automatically displayed on you default browser.

3D visualization of the buildings data

That's it.We are done.This is the very simple task to get our 3D view of our data....Mmmh Happy hacking

The data used can be found Here