This plugin can visualize a digital elevation model (DEM) raster file as a 3D flying carpet to better understand landscape, using PyQGIS and Matplotlib.
You can run the script in two ways:
- As a QGIS 2.X Plugin
- As a standalone code in the QGIS Python Console
-
Clone or download this repository and place items in a folder, e.g. "DEM-Raster-to-3D-Plugin"
-
Copy folder to your QGIS plugin directory, on Windows this is typically:
C:\Users\yourusername\.qgis2\python\plugins
-
Open QGIS and enable the tool from Plugins>Manage and Install Plugins> ☑ "DEM Raster to 3D Plot"
-
Run the tool from the toolbar (DEM icon) and follow instructions on interface.
Simply open the DEMRasterPyConsole.py file in the root directory in the QGIS Python Console, and change the input path to the raster file (keep in mind file size!) and run the code