User Tools

Site Tools


arma3:terrain:qgis-real-world-data

Differences

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

Link to this comparison view

Next revision
Previous revision
arma3:terrain:qgis-real-world-data [2017/01/02 17:18] – created qgis-real-world-data initial page. snakemanarma3:terrain:qgis-real-world-data [2024/08/02 18:54] (current) – links added. snakeman
Line 1: Line 1:
-====== Disclaimer WIP ======+====== ArmA 3 Real World Data using QGIS ======
  
-This page is work in progress, **this is not a complete tutorial**This is notes written down from our discord arma server #terrain_makers channel discussionI will try to finish this page into tutorial as soon as possibleso far I have not been successfully with my efforts to get real world data through QGIS into terrain builder and arma3.+[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]][[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|ArmA 3 Tools]]
  
-If you're lurking in the channel, read this page and know some new information or different way to do something; **please let me know by @Snake Man highlight in the channel**, thank you. +How to get real world data through QGIS into terrain builder and arma3. See our main [[arma3:terrain:real-world-data-tutorial|Real world data tutorial]] page for the main tutorial part and [[qgis-real-world-data-tutorial|QGIS real world data tutorial]] by Ross.
- +
-btw you can scroll to bottom of this page to see last update time in lower right corner.+
  
  
Line 12: Line 10:
 Goal of this work in progress page is to learn how to get real world data for: Goal of this work in progress page is to learn how to get real world data for:
  
-  * terrain +  * <del>terrain</del> see [[arma3:terrain:heightmap-real-world-data]] 
-  * satellite texture+  * <del>satellite texture</del> see [[arma3:terrain:satellite-texture-terra-incognita]]
   * satellite mask   * satellite mask
-  * roads +  * <del>roads</del> see [[arma3:terrain:road-shapefiles-real-world-data]] 
-  * vegetation+  * <del>vegetation</del> see [[real-world-data-tutorial]]
  
 And process these through [[http://www.qgis.org/en/site/|QGIS]] (free open source program) into terrain builder and finally into finished arma3 terrain addon. And process these through [[http://www.qgis.org/en/site/|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.** 
- 
- 
-====== Real World Terrain Data to ArmA 3 ====== 
- 
-**HOWTO get real world terrain data into ArmA 3** 
- 
- 
- 
-====== Terrain Heightmap ====== 
- 
-**ALOS World 3D - 30m data from opentopo.sdsc.edu** 
- 
-Go to [[http://opentopo.sdsc.edu/lidar?format=sd|opentopo.sdsc.edu]] website, click Global Data tab, click satellite data -> "ALOS World 3D - 30m". Now you should see world map with red boxes marking the areas for available data. 
- 
-PMCTODO steps how to select and download data 
- 
-You should be able to imported the tar gunzip (.gz) file into QGIS, however you should unpack it first (with rar for example). You can save the heightmap from QGIS into TIF file format and then read the tif with L3DT. L3DT can then save the heightmap as ASCII grid or XYZ. 
  
  
Line 61: Line 40:
 ====== OpenStreetMap ====== ====== OpenStreetMap ======
  
-Once you have terrain loaded in QGIS, you can get streets / roads to show transparent on top of it.+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 [[arma3:terrain:road-shapefiles-real-world-data|Road Shapefiles Real World Data]] how to download roads.
  
 Use web -> openlayers plugin -> openstreetmap -> openstreetmap (heh yes twice). Use web -> openlayers plugin -> openstreetmap -> openstreetmap (heh yes twice).
Line 70: Line 49:
  
 You can click the X button in layer panel on each layer to turn them on/off. You can click the X button in layer panel on each layer to turn them on/off.
 +
 +You should download [[http://download.geofabrik.de/|OSM shapefiles from geofabrik.de]] instead.
  
  
Line 82: Line 63:
 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. 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 [[arma3:terrain:satellite-texture-terra-incognita|Satellite Texture with Terra Incognita]] instead.
-====== Convert Geodetic .ASC ====== +
- +
-Terrain Processor should be able to convert geodetic .ASC heightmap into something that terrain builder would read. I have not managed to get it to work, terrain processor always does (Not Responding) freeze, meaning my file and/or settings were wrong. +
- +
-Source [[https://community.bistudio.com/wiki/Terrain_Processor:_Tutorial#Heightmap|bis wiki terrain processor tutorial: heightmap]].+
  
  
-====== Terra Incognita ======+====== Export Highres Satellite using QGIS ======
  
-Terra Incognita should be able to download high resolution satellite textures for you.+**A simple guide for exporting high resolution satellite maps using QGIS** by pooface
  
-Source **SOURCEFORGE.NET - be warned!** [[https://sourceforge.net/p/terraincognita2/wiki/Home/|sourceforge.net/p/terraincognita2]].+Install openweb layers for QGIS
  
-Ice: Also in TerraIncognita zoom right in so it says 1m\px or something right at top of your screen, then export your image as OziExplorer, import that to GM and it will place it exact over your height map+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.
  
-====== Print Composer ======+In toolbar of QGIS find Project -> new print composer (CTRL-P) 
 +This will open a new window. 
 +  - add new map button on left side (white paper icon with a green "+"
 +  - draw a generic rectangle
  
-Print Composer will save an image of your current view.+On left side infobar inside composer find:
  
-Open it by Project -> new print composeror use CTRL-P+  Item properties tab 
 +   - under extents, set your coordinate extents based on the CRS you are using (in QGIS at the bottom right) 
 +   - under Main properties, change from Cache (default) to Render 
 +  - Go back to Composition tab and under Resize page to contentclick Resize page 
 +  You should be looking at a preview of your final satellite export framed nicely.
  
-Make it a square pare size, for example 100mm x 100mm.+Now you may export:
  
-Select layout -> add map, drag a box around the white area.+In the toolbar of the print composer window, under Composer: export as image
  
-The view should look like your current QGIS main viewhide/show layers to get the view you want like google satellite.+  - set page widgth and height in pixels. 
 +  - Depending on how you plan to import into terrain builderset these accordingly 
 +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. 
 +  - Save and then wait for export.  If you are exporting images of these large sizes, it MAY take a WHILE! 
 +  - Check your exported image after print composer finishes processing. Often times (for reasons I'm not sure) it may leave holes in your image, in which case I suggest re-exporting.
  
-Item properties -> extents, no idea what to do with those :)+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.
  
-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 [[arma3:terrain:qgis-reproject-transform-tutorial|QGIS Reproject & Transform Tutorial]]. 
  
-FinCenturion: but you need lower left corner x,y and upper right corner x,y coords\\ +====== QGIS Refactor Fields ======
-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+OSM place names data sometimes comes with different order for the fields, this will break up PMC OSM Places CSV2HPP tool. You can fix this in QGIS by using "Refactor fields" plugin.
  
 +In processing toolbox search for "refactor fields", open it. Now you can reorder the fields mapping dialog list, so if you need to swap "name" and "type" fields, just click one and use the arrow keys to move up or down.
  
-====== Open Questions ======+When reorder is OK then just click run button and it creates refactored layer with the new reordered fields.
  
-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? 
arma3/terrain/qgis-real-world-data.1483377535.txt.gz · Last modified: 2017/01/02 17:18 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.