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:
- Open the
Layer Properties
|Style
tab for this layer. - Choose the
2.5D
renderer. - For
Height,
you can use any column representing heights. Here, theNUM_FLOORS
column is being used in an expression:"NUM_FLOORS" * 4
. Using this multiplier gives extra extrusion. If no such attribute exists, you can simply use a numeric height for all features. The default is10
. - Keep the default
Roof
andWall
colors. - The
2.5D
expression is seen...