mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
v.1 Started the page.
parent
044d3095a0
commit
1989407fd6
37
Creating-shape-files-in-QGIS-for-map-data.md
Normal file
37
Creating-shape-files-in-QGIS-for-map-data.md
Normal file
@ -0,0 +1,37 @@
|
||||
# Not finished, to be continued
|
||||
This guide will enable you to create data that the developers can use to enable support for a new map. We will use QGIS, an open-source GIS program to generate this data from various open sources. You need to have QGIS installed, preferably a 3.x+ version with GRASS processing toolbox.
|
||||
https://www.qgis.org/en/site/forusers/download.html
|
||||
|
||||
Here are the basic steps you need to take
|
||||
|
||||
## 1) Map projection
|
||||
|
||||
Find the correct projection for the map. We already have the center meridian meaning we can figure out the proper UTM projection (https://github.com/pydcs/dcs/blob/master/tools/export_map_projection.py).
|
||||
|
||||
`CENTRAL_MERIDIANS = {
|
||||
"caucasus": 33,
|
||||
"falklands": -57,
|
||||
"nevada": -117,
|
||||
"normandy": -3,
|
||||
"persiangulf": 57,
|
||||
"thechannel": 3,
|
||||
"syria": 39,
|
||||
"marianaislands": 147,
|
||||
}`
|
||||
|
||||
We can use this [map](https://www.arcgis.com/apps/View/index.html?appid=7fa64a25efd0420896c3336dc2238475) to check out different UTM zones. Then it is a matter of making a new project in QGIS and setting the project CRS to be this.
|
||||

|
||||
|
||||
You can add XYZ tiles from this python script to add in a bunch of online satmap tile layers you can use: https://raw.githubusercontent.com/klakar/QGIS_resources/master/collections/Geosupportsystem/python/qgis_basemaps.py
|
||||
|
||||
## 2) Outlining the game area
|
||||
|
||||
In the correct projection you can now create a new vector polygon layer and add the game area as an overlay. Preferably by gettting actual coordinates from the ME as opposed to freehand editing like i did. Layer-> Create Later -> New shapefile layer
|
||||

|
||||
|
||||
Make sure you use the project CRS (projection) and that it is a polygon. Also make sure you save it to a location so you can retrieve it the next time you open the project.
|
||||
|
||||

|
||||
|
||||
|
||||
3) For the ocean I downloaded the OSM Ocean Polygon files (source https://osmdata.openstreetmap.de/data/water-polygons.html). These are WGS84 chunck of ocean. Select all the vector objects that are relevant to the map, and use the Vector->Geoprocessing->Dissolve command to merge the cells into one object. This will output a new temporary layer (can be slow to do). This layer we can now save and reproject it to the relevant UTM projection, like UTM 21S for the Falklands map.
|
||||
Loading…
x
Reference in New Issue
Block a user