Python utility to:
- Download global LCZ map from Demuzere et al..
- Extract an area of interest
- Generate a new dataset where each pixel is replaced by a 2D tile corresponding to the LCZ type
The generated file can be displayed in QGIS to create stunning visualizations in 3D.
# Install the tool
pip install cityblocks
# Download global LCZ data.
cityblocks download
# Extract area of interest
cityblocks extract "4.724808,52.273620,5.182114,52.458729"
# Convert LCZ data to 2d tiles
cityblocks convert
Data is downloaded in folder where the command is executed.
Then, import the dataset in QGIS and visualize it. We created a QGIS styling file cityblocks_LCZ.qml, which you can load as follows:
-
Load layer in QGIS (we used 3.34.8 LTR)
-
Load Style from cityblocks_LCZ.qml
Note that you can add styled 2D layers in your QGIS environment to show them in your 3D render.
The file generated by the cityblocks command line utility looks like this when imported in QGIS.
By extruding the surface and applying a bit of styling, we can generate images like below:
The tiles can also be combined with other map layers: