This is an old revision of the document!
How to get real world data through QGIS into terrain builder and arma3. See our main real-world-data-tutorial page for the main tutorial part.
This QGIS page is work in progress, this is not a complete tutorial. Please contact us if you can provide any more information about QGIS real world data subject.
Goal of this work in progress page is to learn how to get real world data for:
And process these through QGIS (free open source program) into terrain builder and finally into finished arma3 terrain addon.
I do not know if all of the above is possible, terrain is but mask? vegetation? No idea yet, I'm learning one step at the time.
Use plugins → manage and install plugins…
Select OpenLayer and click install, select OSMDownloader and click install.
QGIS settings → options → CRS, allows you to setup default CRS for new projects and layers. Set this to EPSG:32631, WGS 84 / UTM zone 31N
Terrains used in arma3 can only be power of two grid, like 256 x 256, 512 x 512, etc. When you get real world data from various web sources its usually downloaded in “hand drawn box” which is not perfect square (power of two), so you must clip this data into square power of two.
PMCTODO now idea how to select power of two square other than typing in lat/lon coordinate numbers
Once you have terrain loaded in QGIS, you can get streets / roads to show transparent on top of it. This is just an image, not actual road shapefiles, see Road Shapefiles Real World Data how to download roads.
Use web → openlayers plugin → openstreetmap → openstreetmap (heh yes twice).
This opens open street maps layer in your project on top of your terrain heightmap. On layers panel double click openstreetmap layer to bring up its properties. Select transparency tab and move global transparency slider to about 50% then click apply and ok.
Now you can see your terrain heightmap and openstreetmap road data together.
You can click the X button in layer panel on each layer to turn them on/off.
Use web → openlayers plugin → google maps → google satellite
Hydrra: Under Open Layers plugin there will be google maps and bing maps tabs that you can use to get your sat image. On both street map and sat map there will be a button two rows under new file icon called download OSM data. Use it then select the area you want to use. let it download then when you have both your street map and sat image use the vector tool and align them. I do believe you also need to set the SRS layer as well. UTM 31.
Hydrra: to get to the vector tool hit Ctrl + alt + T and your toolbox will pop up. Just type in vector and the tool you will most likely need is the transform tool in case your sat image and street map aren't alligned.
Hydrra: Yeah, The plugin provides both sat image and street map. just make sure to separate the layer groups so it's easier to keep track of.
You should download Satellite Texture with Terra Incognita instead.
Print Composer will save an image of your current view.
Open it by Project → new print composer, or use CTRL-P
Make it a square pare size, for example 100mm x 100mm.
Select layout → add map, drag a box around the white area.
The view should look like your current QGIS main view, hide/show layers to get the view you want like google satellite.
Item properties → extents, no idea what to do with those :)
FinCenturion: you need to know now exactly how large of a chunk you need. and the coordinates / extents of this data. I have changed up everything to match arma worldspace by using the methods in my QGIS Reproject & Transform Tutorial.
FinCenturion: but you need lower left corner x,y and upper right corner x,y coords
FinCenturion: if you have more data than you will need you can of course use an area that is in power of two - so you can keep the horizontal scale 1:1 with real life
FinCenturion: say you want to do a 4096 x 4096 m map, and your lower corner is in the (fictive) coords of x 1000 and y 1000 - > exents 1000, 1000 and 5096 and 5096
FinCenturion: if that made any sense :smile:
To save the image use composer → export as image
A simple guide for exporting high resolution satellite maps using QGIS by pooface
Install openweb layers for QGIS
Set your CRS (Coordinate Reference System) in QGIS of which you already know the coordinates of your map extents.
To make this possible, first find your real world location via the openweb layers plugin in QGIS, and give yourself an approximate field of view. The extents do not need to be exact, but it helps print composer.
In toolbar of QGIS find Project → new print composer (CTRL-P) This will open a new window.
On left side infobar inside composer find:
Now you may export:
In the toolbar of the print composer window, under Composer: export as image
example:
I want my satellite image to be 0.5 meters / pixel.
My terrain is 8192 meters by 8192 meters.
Therefore, I want my page width and page height to both be 16384 pixels.
If you wish to reimport this to QGIS to guide your shapefile creation, you must include a .wld file of the same name as the image you just created.
QGIS
[4:09 PM] NigeyS: oo reproject and transform… yeah thats gonna give me a headache
[4:19 PM] FinCenturion: for image export purposes you dont need to reproject and transform
[4:19 PM] FinCenturion: but if you wish to use shapefiles straight up in TP or TB you do
[4:20 PM] NigeyS: atm i just need to get it into photoshop for the layer mask
[4:21 PM] FinCenturion: to use print composer make a new print composer, then under the composition tab in the workspace make sure the page is square, i use 1000x1000mm
[4:22 PM] FinCenturion: then use the add map function from the layout drop down box
[4:22 PM] FinCenturion: scale the newly added map to cover the white sheet
[4:22 PM] FinCenturion: then click on your new map, go to the item proprties tab on the right again
[4:23 PM] FinCenturion: use the Extents to get the correct display
[4:23 PM] FinCenturion: so you basically need to know pretty exact coords of your map
[4:24 PM] FinCenturion: that is why sometimes it's better to have all your shape data reprojected to arma 3 TB worldspace
[4:24 PM] FinCenturion: anyhoo, then you use the export image button and set a file name, then final resolution
[4:25 PM] FinCenturion: it's a bit of a bother at first but QGIS is a massive help once you get used to it
[4:26 PM] NigeyS: that'll help thanks, i have all the co-ords etc
Snake Man: ok when you choose area of terrain you want to download, do you just get “bulk” data with large amounts of room to maneuver or do you get square power of two exact size for arma3 use like 10km x 10km?
Answer: for global mapper you just get bulk data and cut it there, no idea if this is possible in QGIS…