Using the 2.5D renderer

QGIS now has a 2.5D renderer, so named because it doesn't actually allow you to generate a three-dimensional scene, but it does allow data to be rendered in such a way that height and some 3D perspective is shown. The most obvious use case for this renderer is showing building footprint polygons extruded upward, based on the building height. For this example, we are using the lower_manhatten_buildings.shp shapefile. This represents building footprints below 14th Street.

Importantly, it includes a NUM_FLOORS attribute, which will be used to extrude the buildings:

  1. Open the Layer Properties | Style tab for this layer.
  2. Choose the 2.5D renderer.
  3. For Height, you can use any column representing heights. Here, the NUM_FLOORS ...

Get Mastering Geospatial Development with QGIS 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.