Nimrod51 / dem-raster-to-3d-plugin

This QGIS plugin plots a given digital elevation model (DEM) raster image with elevation values on an X,Y,Z 3D matoplotlib plot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEM Raster to 3D Plot

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:

  1. As a QGIS 2.X Plugin
  2. As a standalone code in the QGIS Python Console

Example


Instructions for running as a QGIS Plugin:

  1. Clone or download this repository and place items in a folder, e.g. "DEM-Raster-to-3D-Plugin"

  2. Copy folder to your QGIS plugin directory, on Windows this is typically:

C:\Users\yourusername\.qgis2\python\plugins

  1. Open QGIS and enable the tool from Plugins>Manage and Install Plugins> ☑ "DEM Raster to 3D Plot"

  2. Run the tool from the toolbar (DEM icon) and follow instructions on interface.


Instructions as a standalone code in QGIS Python Console

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

About

This QGIS plugin plots a given digital elevation model (DEM) raster image with elevation values on an X,Y,Z 3D matoplotlib plot.


Languages

Language:Python 72.4%Language:Makefile 16.5%Language:Batchfile 5.7%Language:Shell 3.4%Language:QML 2.1%