QGIS 3.0 comes with 3D layer view which enable us to visualize GIS data in 3D. So we can get a more vivid visualization of a data which contains elevation or height information such as Digital Elevation Model (DEM). DEM contains elevation information of earth's terrain surface. It will be really cool to visualize DEM data in 3D to see terrain elevation difference of earth's surface as in figure 1, rather than seeing it on a flat surface. This tutorial will guide you how to visualize DEM in 3D with QGIS 3.0. In this tutorial I'm using QGIS 3.0 master candidate which can be downloaded from QGIS weekly download.
|Figure 1. DEM 3D Visualization|
Download DEM Data
SRTM is a very popular DEM data source which can be downloaded from USGS Earth Explorer or NASA Earth Data server. But in QGIS you can directly download SRTM DEM data using SRTM Downloader Plugin. You just need to add a data into QGIS map canvas then zoom in to an area that you want to get a DEM data. Read this tutorial How to Download SRTM DEM Data in QGIS.
DEM 3D Visualization
After downloaded a DEM Data. Let's start to visualize it in 3D.
1. Add DEM data into QGIS map canvas as in figure 2.
|Figure 2. DEM data in QGIS Map Canvas|
2. The data contains elevation information in each pixel. In figure 2, the DEM layer rendered in gray singleband. Let's make it more beautiful by changing its render type. To do this, open the DEM layer properties. In Style Option change Render type to Singleband pseudocolor. Then select a color ramp. The DEM data now seen like figure 4.
|Figure 3. DEM Layer Properties|
|Figure 4. DEM Data in Singleband Pseudocolor|
|Figure 5. 3D Map View Menu|
4. Suddenly might be you get an error like figure 6. That's because the 3D map view does not support unprojected coordinate system. In this case the DEM data has geographic coordinate system. We don't have to change the DEM data coordinate system, but just change the map view coordinate system. To do this click the right bottom QGIS window with current CRS. See figure 7
|Figure 6. 3D Map View Error|
|Figure 7. QGIS Map Canvas with Geographic Coordinate System (EPSG:4326)|
|Figure 8. Change a Project Coordinate System|
|Figure 9. DEM data in 3D Map View|
|Figure 10. DEM Data in 3D View after rotation|
|Figure 11. 3D Map View Configuration|
8. Now let's add a satellite imagery layer. For exampe I added world satellite imagery layer from ESRI web map server. Read how to add satellite imagery in QGIS. QGIS will automatically overlay the satellite imagery above the DEM data as in figure 13. Again play with it.
|Figure 13. DEM 3D with satellite imagery overlay|
That's all the tutorial how to visualize DEM data in 3D with QGIS. In the video below you can see how to do it from the beginning.