User Tools

Site Tools


arma3:terrain:qgis-real-world-data-tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
arma3:terrain:qgis-real-world-data-tutorial [2018-07-28 07:19]
snakeman shorter headers.
arma3:terrain:qgis-real-world-data-tutorial [2019-01-17 08:33]
snakeman
Line 3: Line 3:
 ArmA 3 QGIS Real World Data Tutorial By Ross ArmA 3 QGIS Real World Data Tutorial By Ross
  
-**__Using QGIS to export satellite image ready for Terrain Builder project__**+This process has often been described using Global Mapper, but I wanted ​to detail the equivalent steps within the open source GIS app QGIS.
  
-This process has often been described using Global Mapper, but I wanted to detail the equivalent steps within the open source GIS app **QGIS******+The goal is to achieve an export satellite image and heightmap with the same or better quality than would be possible with Global Mapper.
  
-The goal is to achieve ​an export image with the same or better quality than would be possible with Global Mapper+The is my second revision of this process as I recently discovered that due to an update to GDAL (**2.4.0**) one of the key steps in the original tutorial using '​**Clip Raster by Mask Layer**'​ no longer works perfectly!
  
-The visual below shows an example of the 2 processing routes ​reviewed to check loss of image quality due to compression ​and reprojections+So reworked the process by getting a bit more under the hood, and using GDAL command line where possible, this also simplifies the process a little and reduced even further processing on the data.
  
-I will detail **Route A** - because it only requires 1 compression and reprojection pass over the raster which may help preserve image quality+Using following versions:
  
-**{{ https://pmc.editing.wiki/images/Ross-QGIS-Tutorial-process.png }}**+**[[https://qgis.org/en/site/​forusers/​download.html|QGIS v3.4.3]]**
  
-__Software required:__+**[[https://​sourceforge.net/​projects/​terraincognita2/​files/​|Terra Incognita v2.45]]**
  
-**[[satellite-texture-terra-incognita|Terra Incognita]]**+**First an overview of the steps required:**
  
-**[[https://​qgis.org/​en/​site/​forusers/​download.html|QGIS 3.2.0]]**+==== For Heightmap====
  
-**__Brief overview ​of steps:__**+  ​Load heightmap into QGIS (drag and drop) 
 +  ​Set QGIS to appropriate CRS for location ​of your HM 
 +  ​Create shapefile & generate square feature using Advanced Digitizing panel 
 +  ​Obtain extents from square feature 
 +  * Run 2 GDAL commands 
 +    * First to set cell size, CRS and then clip to shapefile square extents 
 +    * Second to convert to .asc file 
 + 
 + 
 +==== For Satellite image ====
  
 **For single tile export** **For single tile export**
 +
   * Load in just the .map files into QGIS   * Load in just the .map files into QGIS
   * Merge Rasters   * Merge Rasters
-  * Align raster to 1mtr cell size and re-project to appropriate CRS for its geo location +  * Obtain extents from square feature 
-  * Change the ‘Project Coordinate Reference System’ (CRSto match CRS in previous step +  * gdalwarp command will set cell size, CRS and then clip to shapefile ​square extents
-  * Create ​shapefile ​layer +
-  * Create square Feature using Advanced Digitizing panel +
-  * Export sat image ready for Terrain Builder using ‘clip raster by mask layer’+
  
 **For 4 tile export** **For 4 tile export**
 +
   * Load in just the .map files into QGIS   * Load in just the .map files into QGIS
   * Merge Rasters   * Merge Rasters
-  * Align raster to 1mtr cell size and re-project to appropriate CRS for its geo location 
-  * Change the ‘Project Coordinate Reference System’ (CRS) to match CRS in previous step 
-  * Create shapefile layer 
   * Create grid -- 2 x 2 Feature   * Create grid -- 2 x 2 Feature
   * Move each quarter to its own shapefile layer   * Move each quarter to its own shapefile layer
-  * Export 4 sat images ready for Terrain Builder using ‘clip raster by mask layer’+  * Obtain extents from each quarter feature 
 +  * Run gdalwarp command ​for each quarter to set cell size and CRS and clip to shapefile square feature extents
  
-I shall primarily focus on the steps for generating a single tile export, but will explain additional steps required for a 4 tile export at the end -- which would suit those terrains that are 40960px x 40960px and higher.+**And now detailed ​steps for:**
  
  
-====== Load just the .map files into QGIS ======+===== Heightmap: ​=====
  
-Terra Incognita will generate tiled images with corresponding .map files, these .map files hold the CRS details within them. You will only need to drag the **.map** files into QGIS’s central pane. They will automatically link back to the images (jpg’s, tif’s), located where you originally saved them.+**Drag and drop your heightmap '.asc' into QGIS**
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-1.png }}+**Set QGIS to appropriate CRS for location of your HM**
  
 +Clicking on the CRS section bottom right within QGIS -- will bring up the Project Properties for CRS
  
-====== Merge raster’s ======+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-11b.png}}
  
-Top Menu - **Raster** -> **Miscellaneous** -> **Merge**+Select the CRS to match your real world data, in this example its ‘**WGS 84 UTM zone 20N**’ because the terrain is from the Montserrat in the Caribbean. See also [[https://​pmc.editing.wiki/​doku.php?​id=arma3:​terrain:​utm-projection|UTM projection]].
  
-Select all your **.map** files as input layers+This will ensure ​your QGIS project space works appropriately with any other data you want to add - eg road shapefiles etc. Terrain Builder will only use UTM 31N but we'll get to that later.
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-2.png }} +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-13b.png}}
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-3.png }}+
  
-Don’t forget to change ​**Output data type** to ‘Byte’ as the default is ‘Float32’.+**Create shapefile & generate square feature using Advanced Digitizing panel**
  
-**Select ‘Save to File’** under Merged -- as the default is to a temporary file.+Top menu -- **Layer **>​ **Create Layer** >​ **New Shapefile Layer**
  
-Stitching together a collection of .map files is fairly simple using the **Merge** function, depending on the size of your project it will however create large .tif exports. The example above generated a .tif file of 5.42GB -- for an area that covers approx 40 x 40km. This took 36 minutes ​to complete the processing, so be patient.** **+Save to project folder location
  
-**Once complete you will get confirmation and the time taken to process in the Log tab:**+Change Geometry type to ‘Polygon’
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-4.png }}+Match CRS so it is the same as that just configured in above step
  
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-14b.png}}
  
-====== Align raster to 1mtr cell size and re-project to correct CRS ======+Right click on your shapefile in layers window & select ‘**Toggle Editing**’
  
-I am working towards a cell size of **1m** ​so within **Terrain Builder** in my ‘**Mapframe Properties**’ you would find this >+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-15b.png}}
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-5.png }}+From menu -- **View** → **Toolbars** → **Advanced Digitizing Toolbar**
  
-The reason we have to align raster to 1m cell size within ​QGIS is because even though Terra Incognita is saying+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-16.png}}
  
-it’s generating exports at - **1m/px** +Select ‘**Add Polygon Feature**
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-6.png }}+
  
-If you double click on one of your .map raster’s in QGIS **Layers panel** you will see in the **Information** tab that it’s not exactly 1m  > +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-17.png}}
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-7.png }}+
  
-Top Menu -- **Raster > Align Rasters** Add the raster generated in the previous **Merge raster’s** step:+Select Enable advanced digitizing tools
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-8.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-18.png}}
  
-Tick both **CRS** and **Cell Size:**+To create a perfect square, **left mouse click** for your **top left** starting point, move your mouse to the right a little, then press ‘**d**’ on keyboard, type in the exact width (distance) required (in this example ‘20480’) then immediately press **Enter** -- be careful not to move the mouse before pressing **Enter** or it will mess up the number. Press **left mouse click** and you will have drawn your first horizontal line which turns red. By default this tool snaps to 90 degree angles, making it easy to draw your lines. Now to draw the vertical line start moving mouse your down, press ‘d’ again and type in same figure as above, press **Enter** and ​another **left mouse click**, repeat the process for the last 2 lines of the square.
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-9.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-19b.png}}
  
-Change settings to suite your cell size and appropriate CRS projection:+See a short video example using the **Advanced Digitizing** tool:
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-10.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-AdvancedDigitizing.gif}}
  
 +After the last **left mouse click** from the step above, the tool is still waiting to plot more points, so to finalise the square do a **right mouse click**
  
-====== Change the ‘Project Coordinate Reference System’ (CRS) ======+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-20b.png}}
  
-Clicking on the CRS section bottom right within QGIS -- will bring up the Project Properties for CRS+This will then bring up a dialogue -- just type any number and Enter
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-11.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-21.png}}
  
-It will probably be on a Generated CRS which looks something like this:+**Obtain extents from square feature**
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-12.png }}+Activate the toolbox if it is not already available
  
-Select the **CRS** to match the same selected in previous **Align** Step, in this example its ‘**WGS 84 UTM zone 30N’** because the terrain is from the United KingdomSee also [[utm-projection|UTM projection]].+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-12.png}}
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-13.png }}+Start typing '​**vector**'​ in Processing Toolbox search bar, and you will see '​**Vector information**'​
  
 +Double click it and make sure your square **input layer** is selected - then just click **Run**
  
-====== Create shapefile layer ======+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-01.png}}
  
-Top menu -- **Layer** > **Create Layer** > **New Shapefile Layer**+You will only need to copy the **Extent** figures, which we will use within the GDAL commands in the next step
  
-Change **Geometry type** to ‘Polygon’+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-02.png}}
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-14.png }}+**Run the first GDAL command to set CRS, cell size and then clip to shapefile square extents**
  
-Right click on shapefile & select ‘**Toggle Editing’**+From menu - **Plugins** >​ **Python Console**
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-15.png }}****** **+Click '**Show Editor**'
  
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-03.png}}
  
-====== Create square using Advanced Digitizing panel ======+The blank window on the right is where you will enter GDAL commands
  
-From menu -- **View** -> **Toolbars** -> **Advanced Digitizing Toolbar**+Now you are ready to edit the command below to match your data sections in bold are the parts to edit:
  
-{{ https://pmc.editing.wiki/images/Ross-QGIS-Tutorial-16.png }}+import os\\ 
 +os.system(r%%'''​%%gdalwarp **-t_srs EPSG:​32620** -wo SOURCE_EXTRA=1000 **-tr 5.0 5.0** -srcnodata "​-9999"​ -r cubic -of GTiff **-te 576787.687480 1841104.815839 597267.687480 1861584.815839 D:/Arma/Heightmaps/​Opentopo/​output_srtm.asc** **D:/Arma/QGIS/​Montserrat/​converted.tif**%%'''​%%)
  
-Select ‘**Add Polygon Feature**’****+Some explanation of the key parameters:
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-17.png }}+**-t_srs EPSG:32620 **\\ 
 +CRS to match where the heightmap is from in the world.
  
-Select ​**Enable advanced digitizing tools**+**-tr 5.0 5.0**\\ 
 +The desired resolution of your heightmap, match with Cell size set within your Mapframe properties in Terrain Builder:
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-18.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-04.png}}
  
-To create a perfect square, **left mouse click** for your **top left** starting point, move your mouse to the right a little, then press ‘**d**’ on keyboard, type in the exact width (distance) required (in this example ‘40960’) then immediately press **Enter** -- be careful not to move the mouse before pressing **Enter** or it will mess up the numberPress **left mouse click** and you will have drawn your first horizontal line which turns redBy default this tool snaps to 90 degree angles, making it easy to draw your linesNow to draw the vertical line start moving mouse your down, press ‘**d**’ again and type in same figure as above, press **Enter** and another **left mouse click**, repeat the process for the last 2 lines of the square.+**-te 576787.687480 1841104.815839 597267.687480 1861584.815839**\\ 
 +The 4 long figures represent the **extents** of ​your square, and should be replaced with your own figures obtained in previous step.
  
-{{ https://pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-19.png }}+Update the paths to match where you are storing your source heightmap, and where you want the output tif saved to.
  
-After the last **left mouse click** from the step above, the tool is still waiting to plot more points, so to finalise the square do a **right mouse click**+Input:\\ 
 +**D:/​Arma/​Heightmaps/​Opentopo/​output_srtm.asc**  use double quotes around your input path if it contains any blanks
  
-{{ https://pmc.editing.wiki/images/Ross-QGIS-Tutorial-20.png }}+Output:\\ 
 +**D:/Arma/QGIS/Montserrat/converted.tif**
  
-This will then bring up a dialogue -- just type any number and **Enter**+**Run second GDAL command - converting tif from above step to a Terrain Builder friendly .asc**
  
-{{ https://pmc.editing.wiki/images/Ross-QGIS-Tutorial-21.png }}+import os\\ 
 +os.system(r%%'''​%%gdal_translate -of AAIGrid D:/Arma/QGIS/​Montserrat/​converted.tif D:/Arma/QGIS/​Montserrat/​final.asc%%'''​%%)
  
-Because the new square **polygon feature** is filled with a colour it’s hard to see your sat image behind, so I tend to double click on the shapefile in the layers panel on the left, and in the **Symbology** tab set the **Opacity** for both available options to 70% 
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-22.png }}****** **+===== Satellite image =====
  
-To move your square just select **Move Feature** and shift it to the desired position over your sat image+==== For single tile export ====
  
-{{ https://pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-23.png }}****** **+**Load in just the .map files into QGIS**
  
-Once you have finished with your polygon feature, remember to right click on shapefile layer & click**‘Toggle ​editing’** so changes are saved to file.****+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-1b.png}}
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-24.png }}****** **+**Merge Rasters**
  
 +Top Menu -** Raster **→ **Miscellaneous **→ **Merge**
  
-====== Export satellite image ready for Terrain Builder ======+Select all your .map files as input layers
  
-Menu -- **Raster** ​-> **Extraction** -> **Clip Raster by Mask Layer**+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-3b.png}}
  
-**Input layer** is the raster generated from the **Align Raster** step+change **Output data type** to ‘Byte’ as the default ​is ‘Float32’.
  
-**Mask Layer** - is the shapefile created in the previous step+Select ‘**Save to File**’ under Merged ​-- as the default is to a temporary file.
  
-Double check these are both the same CRS+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-2b.png}}
  
-Change ​**Output data type** to ‘Byte’+**Obtain extents from square feature**
  
-Once your clipped file is saved, check the image dimensions match exactly to those defined in the **Create square** step.+You should already have this from working on heightmap above   **576787.687480 1841104.815839 597267.687480 1861584.815839**
  
-When saving to **.bmp** (best format for Terrain Builder) you will find there is a 4GB hard limit.+**Run GDAL command**
  
-This will obviously be dictated by the size of your chosen terrain+import os\\ 
 +os.system(r%%'''​%%gdalwarp **-t_srs EPSG:​32620** -r cubic -wo SOURCE_EXTRA=1000 **-tr 1.0 1.0** -r cubic -of BMP **-te 576787.687480 1841104.815839 597267.687480 1861584.815839** D:/​Arma/​QGIS/​Montserrat/​merged.tif D:/​Arma/​QGIS/​Montserrat/​mont.bmp%%'''​%%)
  
-If you keep under 4GB you can use a single square feature selection shown above+Some explanation of the key parameters:
  
-If you are likely to breach ​the 4GB limit, you’ll need to look at 4 tiles for your feature selection.+**-t_srs EPSG:​32620**\\ 
 +Sets the CRS
  
-See below steps to generate 4 tiled feature selection.+**-tr 1.0 1.0**\\ 
 +Sets the resolution of your satellite image to 1mtr per pixel - which is recommended. Make sure it matches your settings within Terrain Builder.
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-25.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-05.png}}
  
 +**-te 576787.687480 1841104.815839 597267.687480 1861584.815839**\\
 +Clips to shapefile square extents
  
-====== Create grid -- 2 x 2 Feature - ready to export sat image into 4 tiles ====== 
  
-You will need to have created the **square feature** first -- see above steps+==== For 4 tile export ====
  
-Top Menu -- **View** -> **Panels** -> **Processing Toolbox**+Detailing additional steps required for a 4 tile export ​-- which would suit those terrains that are 40960px x 40960px and higher.
  
-Processing Toolbox Menu -- **Vector Creation** > **Create Grid**+**Load in just the .map files into QGIS**
  
-Set **Grid type** to ‘polygon’ & the **Horizontal** & **Vertical** to half the distance of your main square+**Merge rasters - same as above (single tile export)**
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-26.png }}+**Create grid -- 2 x 2 Feature**
  
-Select the shapefile ​created ​above for your main square+You will need to have created ​the **square ​shapefile** first -- see above steps
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-27.png }}+Top Menu -- **View** → **Panels** → **Processing Toolbox** 
 + 
 +Processing Toolbox Menu -- **Vector Creation** >​ **Create Grid** 
 + 
 +Set **Grid type** to ‘**Rectangle (polygon)**’ & the **Horizontal & Vertical** to half the distance of your main square
  
 Set it to save new grid feature to .shp file Set it to save new grid feature to .shp file
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-28.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-26b.png}}
  
-Your original ​square ​feature selection+Select the shapefile layer for your square
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-29.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-13.png}}
  
-will then be Covered with a new grid of 4 tiles -- perfect quarters of your original square+After clicking **Run**,​ your original square ​will then be Covered with a new grid of 4 tiles -- perfect quarters of your original square
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-30.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-30b.png}} 
 + 
 +**Move each quarter to its own shapefile layer**
  
 Because you will need to export each quarter separately for use in Terrain Builder, we will move each quarter onto its own shapefile layer. Because you will need to export each quarter separately for use in Terrain Builder, we will move each quarter onto its own shapefile layer.
  
-Click **Select Features ​-   **+Click **Select Features** -
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-31.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-31.png}}
  
 And select the first quarter: And select the first quarter:
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-32.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-32b.png}}
  
-Top Menu -- **Edit** > **Copy Features**+Top Menu -- **Edit** >​ **Copy Features**
  
-Then... **Edit** ​-> **Paste Features ​As** -> **New Vector Layer**+Then… **Edit** → **Paste Features ​As **→ **New Vector Layer**
  
 Save shapefile layer to something obvious Save shapefile layer to something obvious
Line 239: Line 264:
 I’ve used ‘**TL**’ for top left. I’ve used ‘**TL**’ for top left.
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-33.png }}+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-33b.png}} 
 + 
 +Repeat for the remaining quarters and you’ll have something like below, ‘Grid’ can be deleted. 
 + 
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-34b.png}} 
 + 
 +You will then have 4 tiles which we can use to gather each quarters extents 
 + 
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-35b.png}} 
 + 
 +**Obtain extents from each quarter feature** 
 + 
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-06.png}} 
 + 
 +Copy extents to clipboard 
 + 
 +{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-07.png}} 
 + 
 +And list them out for safe keeping - 
 + 
 +TL -  Extent: (576787.687480,​ 1851344.815839) - (587027.687480,​ 1861584.815839)\\ 
 +TR -  Extent: (587027.687480,​ 1851344.815839) - (597267.687480,​ 1861584.815839)\\ 
 +BL -  Extent: (576787.687480,​ 1841104.815839) - (587027.687480,​ 1851344.815839)\\ 
 +BR - Extent: (587027.687480,​ 1841104.815839) - (597267.687480,​ 1851344.815839)\\ 
 + 
 +**Run GDAL command for each quarter to set cell size and CRS and clip to shapefile square extents** 
 + 
 +import os\\ 
 +os.system(r%%'''​%%gdalwarp -t_srs EPSG:32620 -r cubic -wo SOURCE_EXTRA=1000 -tr 1.0 1.0 -r cubic -of BMP -te 576787.687480 1841104.815839 597267.687480 1861584.815839 D:/​Arma/​QGIS/​Montserrat/​merged.tif D:/​Arma/​QGIS/​Montserrat/​**TR.bmp**%%'''​%%) 
 + 
 + 
 +===== Loading your assets into Terrain Builder ===== 
 + 
 + 
 +**Heightmap (.asc) edits** 
 + 
 +Open your asc and change the following:
  
-Repeat for the remaining quarters and you’ll have something like below, ‘**Grid**’ can be deleted.+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-14.png}}
  
-{{ https://pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-34.png }}+Before loading the asc file into Terrain Builder, delete the .prj fileOtherwise it will not import into TB.
  
-You will then have 4 tiles ready for reference in clip+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-09.png}}
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-35.png }}+**Satellite image**
  
-I’d recommend configuring the new tiles opacity as mentioned in the previous **Create square** step. 
  
 +Before loading the satellite image into Terrrain Builder delete the .bmp.aux file
  
-====== Export satellite ​images ​(tiled) ready for Terrain Builder ======+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-08.png}}
  
-The following steps will need to be repeated 4 times in order to export your 4 quarters. 
  
-Menu -- **Raster** -> **Extraction** -> **Clip Raster by Mask Layer**+===== Managing the project assets within QGIS =====
  
-**Input layer** - is the raster generated from the **Align Raster** step 
  
-**Mask Layer** - select each quarter, until you have extracted all 4+Save your QGIS project so that you can return to export further data at a later date.
  
-Change **Output data type** to ‘Byte’ 
  
-{{ https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-36.png }}+Layers can be tidied up to hold the essentials ready for the next time you want to re-run GDAL commands, or export anything else like road shapefiles or mask layers etc.
  
-Once your clipped file is saved, check the image dimensions are exactly half of those defined in the **Create square** step. In this example it would be 20480px 
  
-These 4 tiled sat images ​can then be brought together in Terrain builder using **Layers**.+{{https://​pmc.editing.wiki/​images/​Ross-QGIS-Tutorial-11.png}}
  
-[[import-satellite-in-smaller-tiles|Import satellite in smaller tiles]]+**Coming Soon:** 
 +  * Road shapefile creation 
 +  * Assisted image classification ​for creation of mask 
 +  * 3d preview using Qgis2threejs
arma3/terrain/qgis-real-world-data-tutorial.txt · Last modified: 2022-01-04 05:59 by snakeman