Skip to content
DavixDevelop edited this page Feb 28, 2021 · 7 revisions

Custom Terrain from Malta CloudIsle 3D GRID LiDAR Data

Warning

This guide uses data from the airborne LIDAR survey conducted as part of the ERDF156 project on the 17th February 2012, therefore use it at your discretion. The data uses the Aattribution-NonCommercial-NoDerivatives 4.0 International license and has no limitations to public access.

Introduction

This guide is intended for those who wish to create a custom terrain dataset to use in Malta. The guide only shows you how to download and generate the DEM(digital elevation model), to be used in the main guide. For this guide to work, you will need to install CloudCompare and QGIS. After you complete all the steps, follow Part two: Generating/using your dataset, starting at step B.

Guide

A. CloudCompare & QGIS preparation

  • Download and install the latest stable release of CloudComapre from here
  • Download and install the latest version of QGIS (3.16) in OSGeo4W

B. Generating dem files

Downloading lidar data

  • First, open the Malta Public Geoserver website
  • Zoom to the desired area
  • On the left side (Table of Contents) click on CloudIsle 3D (Point Data 2012)
  • Then choose Grid LiDAR Data
  • From the map, take a note of which tiles you wish to use (ex 456_3972,456_3973,455_3972,455_3973)
  • Download the downloader.py script
  • Open QGIS and navigate to Plugins/Python Console in the toolbar
  • In the opened bottom panel click on the Show Editor button (Script icon)
  • Open the downloader.py file using the Open Script... button (Folder icon)
  • Once open, navigate to the download_dir line (line: 12)
  • Here replace the path with the path where you wish to store the downloaded lidar data and make sure to use double backslash
  • Navigate one line down (line: 13)
  • Here, type in one or more noted tiles and make sure to use quotation marks and no comma at the end, like in the example
  • Save the changes using the Save button (Floppy disk icon)
  • Navigate to View/Panels/Log Messages in the toolbar
  • Now, depending on how many tiles you wish to download, this can take quite a while. Click on the Run Script button (green play button)
  • After the script is finished you will get a notification from QGIS

Generating raster data

  • Download the export_dem_malta.py script
  • Open the export_dem_malta.py file using the Open Script... button (Folder icon)
  • Once open navigate to the source_directory line (line: 14)
  • Here replace the path with your path to the folder where you saved the lidar data (downlaod_dir in the previous step) and make sure to use double backslash
  • Then navigate to the dem_directory line (line: 15) and replace the path where you wish to save the dem files, making sure to use double backslash
  • Save the changes using the Save button (Floppy disk icon)
  • Now, depending on the size of the area, this can take quite a while. Click on the Run Script button (green play button)
  • After the script is finished you will get a notification from QGIS

C. Importing your dataset

  • From here on forward, follow Part two: Generating/using your dataset, starting at step B, but be sure to use EPSG:23033 as the crs for the imported layer and when asked which transformation to use in the Select Transformation window, select the one that has an area of use: World - N hemisphere - 12°E to 18°E, Malta - onshore (9th one)

Need help or have a question?

You can contact me on Discord, under davixdevelop#3914, or you can join us on our BTE Development Hub on Discord, and ask away under the #terraplusplus-support channel.