Making Awesome Maps - QGIS and You

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Making Awesome Maps - QGIS and You

Post by TitaniumTrout »

Image

Do you want your maps to look like that? In CMO? Yes, you can do it. You can do it now, without any added work from the devs, and your maps can be exactly how you want them.

We used to have G.MAPS for getting map snippets, then that was abandoned and now folks are using SAS.Planet. I'm not a fan of it, mainly the whole bootleg/jank feel and the security warnings every time I open it up. So after Stamen took a dump, I decided to find a new way to give me sweet maps.

QGIS is an open source piece of software that allows us to make maps and export the bits we need. It's even easier than SAS.Planet and it looks better too. You can download it here : https://www.qgis.org/en/site/forusers/download.html

Download, install, and open it up. On the left hand side you'll see a bunch of stuff in the Browser. Initially open up XYZ tiles and double click OpenStreetMap. You can verify QGIS working.

Image

Now for some maps!

Go to the Plugins tab followed by Manage and Install Plugins. Search for MapTiler. Install the Plugin and Restart QGIS.

Image

On the left hand side you will see a MapTiler tab. Open it up and double click one of the maps. You will see it open up in the Layers tab below.
Image

This is the "Toner" map. If you don't like it, you can Right Click the map in the Layers tab and Remove Layer.

This is a super duper important step! You must change your coordinate reference system to WGS 84. The authority ID is EPSG:4326.

Image

To add additional maps from MapTiler, Right Click on MapTiler in the Browser and double click on the MaTiler Cloud type you'd like. I really like Dark Matter, the unit icons really pop.

Image

In the Upper Left click on Project, Import/Export, and Export Map to Image.

Image

I like 300 dpi, more than that and the files get really big. Try to keep your zoom level, or scale, approximately the same if you are doing multiple areas. Click on Draw on Canvas, and select where you'd like your map. After you've click-dragged your map click Save. It'll open up a File Save dialog, create a unique name and save it.

After a few seconds you should see a success bar on the top. Or go check for it in your folder that you selected.

Image

Now to CMO! Click the Custom Layers button. Then select Add Layer and find the file you just made in QGIS. It will take a few seconds and should appear.

Image

A few important items :
1. The CRS needs to be set any time you open a new map in QGIS.
2. If your DPI is too high the file size for CMO will get too large and it will hang or crash when loading.
3. You have to either load the layers each time you load the scenario, or you have to use some Lua to load the attachment.
4. This only does one zoom level, so if you zoom in ridiculously close, all you will see is the PNG you created but zoomified. This is the nature of how it works using an overlay. You are "overlaying" this image on the normal CMO map system.

To make your own, custom maps, things get more interesting. Create an account at MapBox.

Image

Then make your own map! Select the style, then modify the layers as you see fit. I've made a satellite map, but slightly darker, with blue roads.

Image This took me like, 30 seconds.

Save it with a Unique name, then make it Public.

Image

Now go back to QGIS.

https://wiki.weaponsrelease.com/chevere ... -52-36.png

You will need your Mapbox studio user name, your map name, and your public token. (See this link for detailed instructions, just scroll down to the QGIS section.) https://docs.mapbox.com/help/tutorials/ ... cgis-qgis/

Select NEW, give it a unique name, and follow the URL format in the link above. Click OK, then Connect. You will see it under the WMS/WMTS drop down in the Browser.

Image

Follow the same steps to export the image (and remember your CRS!) and you now have "your" map! Note : Mapbox is free for 200,000 tile requests. So if you go wild and make dozens of maps and try to export the world, you could run into the paid tier. But that's on you.

In contrast the MapTiler plug in is 100% free and requires no sign ins or logins.

An interesting note, I've used 540 static tile requests out of 200,000. That occurred while I was making this post, testing things, and not really getting terribly detailed. So don't share your tokens or maps, otherwise it'll take a few hundred people to max out your account. This also puts maps into perspective, someone has to pay for this stuff somewhere. It is bandwidth intense to send all of these tiles. I found this eye opening and gave me a new found respect for the maps we already have in CMO.

QGIS is very powerful. This is 100% a professional grade piece of software. You can probably make it do awesome stuff, like bathymetry layers and such. I'd really love to see the types of maps people are making so share your schemes.

Just post if you have any questions, I'm not an expert, but I can probably get you making some maps.
User avatar
Blast33
Posts: 703
Joined: Mon Dec 31, 2018 1:23 pm
Location: Above and beyond

Re: Making Awesome Maps - QGIS and You

Post by Blast33 »

Awesome, thanks for sharing!
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Making Awesome Maps - QGIS and You

Post by Parel803 »

Thank you for sharing,
I'll give it a try.
regards GJ
User avatar
schweggy
Posts: 194
Joined: Tue Feb 03, 2015 8:24 pm

Re: Making Awesome Maps - QGIS and You

Post by schweggy »

If you make a custom map using the MapBox route is is "zoomable" like the existing map layers in CMO? Or is it like a static image that doesn't increase in detail the more your zoom in?

Being able to zoom in with detail would be desirable, IMO.
- schweggy -

Montani Semper Liberi - Mountaineers are always free
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Re: Making Awesome Maps - QGIS and You

Post by TitaniumTrout »

schweggy wrote: Mon Oct 16, 2023 2:03 pm If you make a custom map using the MapBox route is is "zoomable" like the existing map layers in CMO? Or is it like a static image that doesn't increase in detail the more your zoom in?

Being able to zoom in with detail would be desirable, IMO.
It is static. Zooming would be great, but the Overlay method is just for single images.
thewood1
Posts: 9910
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Making Awesome Maps - QGIS and You

Post by thewood1 »

I also strongly suspect that the ability to zoom at extreme scales that CMO allows is a big factor in not being able to have local storage on install and the cost in bandwidth for cloud storage. Thats a lot of graphical data having to be moved scaling from mile in orbit down to individual houses. On a different scale, its what MSFS 2020's biggest technical weakness is also.
User avatar
schweggy
Posts: 194
Joined: Tue Feb 03, 2015 8:24 pm

Re: Making Awesome Maps - QGIS and You

Post by schweggy »

TitaniumTrout wrote: Mon Oct 16, 2023 2:09 pm
schweggy wrote: Mon Oct 16, 2023 2:03 pm If you make a custom map using the MapBox route is is "zoomable" like the existing map layers in CMO? Or is it like a static image that doesn't increase in detail the more your zoom in?

Being able to zoom in with detail would be desirable, IMO.
It is static. Zooming would be great, but the Overlay method is just for single images.
====================
I understand. I sort of thought that's how it would work.

Ages ago I worked for the U.S. Geological Survey in one of their mapping divisions. The transition from actual hand drawn maps to digital was underway and although you could zoom in on, say a topo map, the details didn't necessarily scale. But I think being able to create a custom map layer for CMO of a particular area of interest for a scenario is extremely cool. I'm going to spend some time getting the various bits and pieces installed and play around with it anyway just because it's interesting. And, to be honest, is cool.

And the storage space and processing needed for zooming map overlays isn't trivial as "thewood1" pointed out above.
- schweggy -

Montani Semper Liberi - Mountaineers are always free
thewood1
Posts: 9910
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Making Awesome Maps - QGIS and You

Post by thewood1 »

You can just call me "thewood"
Horchata
Posts: 23
Joined: Sun Sep 24, 2023 7:52 pm

Re: Making Awesome Maps - QGIS and You

Post by Horchata »

thewood1 wrote: Mon Oct 16, 2023 2:46 pm I also strongly suspect that the ability to zoom at extreme scales that CMO allows is a big factor in not being able to have local storage on install and the cost in bandwidth for cloud storage. Thats a lot of graphical data having to be moved scaling from mile in orbit down to individual houses. On a different scale, its what MSFS 2020's biggest technical weakness is also.
The kind of person who plays games like this usually has a large storage library with 50TB+ so it isn't a storage issue.
The devs can and should create a torrent for all of the mapping data, at least satellite photos and street map data for the worlds popular conflict zones would be nice.

It could be a licensing issue.
thewood1
Posts: 9910
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Making Awesome Maps - QGIS and You

Post by thewood1 »

That is quite presumptuous of you. We have a number of people on the board still on Win7 and running on older PCs.

A quick poll. How many people here have access to local 50+ TB of storage for use in a real-time game?
User avatar
stilesw
Posts: 1572
Joined: Wed Jun 25, 2014 10:08 pm
Location: Hansville, WA, USA

Re: Making Awesome Maps - QGIS and You

Post by stilesw »

Hmmm. I could go 2Tb SSD, generally 1.5Tb available and 64Gb memory but I'm excessive and that's with three versions of Command installed.

-WS
“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.”

Charles Edward Montague, English novelist and essayist
~Disenchantment, ch. 15 (1922)
User avatar
stilesw
Posts: 1572
Joined: Wed Jun 25, 2014 10:08 pm
Location: Hansville, WA, USA

Re: Making Awesome Maps - QGIS and You

Post by stilesw »

And, pushing it I've 20Tb additional HDD storage and a 12Tb NAS backup. But, 50+ Tb, no way. And again I' retired with a fair amount of discretionary funds.

-WS
“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.”

Charles Edward Montague, English novelist and essayist
~Disenchantment, ch. 15 (1922)
thewood1
Posts: 9910
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Making Awesome Maps - QGIS and You

Post by thewood1 »

Just as a reference, I have 8TB in three SSDs in my main laptop and 6TB in back up spinning HD. I have a second travel laptop with 4TB. I have a media server desktop with 14TB in spinning HD. My son has a desktop with 4TB spinning HD.

The total for my house is 36TB across 5 computers. I bet I am in the top 1% of PC users, including iOS. Steam's annual survey says almost 50% of players still have less than a TB on the PCs and less than 5% have more than 4TB available.

So I would love to hear the reasoning for how the typical player of CMO has more than 50TB available. Because looking at this stat, it just might be a storage issue. Just look at the bandwidth and storage issues MSFS2020 has with a lot of players.
morphin
Posts: 719
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

Re: Making Awesome Maps - QGIS and You

Post by morphin »

It is so easy and so cheap to buy storage. So this is really not an issue (And if you really want you can make an installation Option to choose with maps and resolutions you would like to make availabable offline).

Andy
User avatar
MausMan2
Posts: 150
Joined: Mon Aug 13, 2007 5:35 am
Location: Minnesota, USA

Re: Making Awesome Maps - QGIS and You

Post by MausMan2 »

more sharing... here's what my custom map built in QGIS and placed in the opentopomap tile cache looks for this scenario..
Attachments
example.png
example.png (1.22 MiB) Viewed 2421 times
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Re: Making Awesome Maps - QGIS and You

Post by TitaniumTrout »

MausMan2 wrote: Sun Oct 22, 2023 5:05 pm more sharing... here's what my custom map built in QGIS and placed in the opentopomap tile cache looks for this scenario..
Looks good!

Also y'all calling out 50tb of storage for CMO maps is nuts. Do you really need to zoom down to count rivets on pixel planes across the entire globe?

The only time I drill down that far is to make individual air bases match, but even at that I find an Overlay from QGIS to be more concise and detailed. Then once I'm done I go with the higher level QGIS map that looks good and play at higher altitude. I have less tile issues and less clutter on my maps.
User avatar
MausMan2
Posts: 150
Joined: Mon Aug 13, 2007 5:35 am
Location: Minnesota, USA

Re: Making Awesome Maps - QGIS and You

Post by MausMan2 »

For sure, next thing I want to do with tile generation is to generate them in a more intelligent way. Right now Im going down to zoom level 13 for the entire theater of the scenario. So that includes that level of detail at sea also. I could polygon-out the land for level 13, and everything else no more detailed than level 8 or 9.
thewood1
Posts: 9910
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Making Awesome Maps - QGIS and You

Post by thewood1 »

morphin wrote: Sun Oct 22, 2023 1:16 pm It is so easy and so cheap to buy storage. So this is really not an issue (And if you really want you can make an installation Option to choose with maps and resolutions you would like to make availabable offline).

Andy
You are missing the point. It was stated definitively that the typical CMO player has 50TB of non-streaming storage available. I call that a little BS.
BKL
Posts: 117
Joined: Sat Nov 02, 2013 3:48 pm

Re: Making Awesome Maps - QGIS and You

Post by BKL »

Is there a way just to get place names as an overlay without using much as much storage space?
BKL
morphin
Posts: 719
Joined: Fri Apr 26, 2002 6:51 pm
Location: Switzerland

Re: Making Awesome Maps - QGIS and You

Post by morphin »

thewood1 wrote: Sun Oct 22, 2023 11:55 pm
morphin wrote: Sun Oct 22, 2023 1:16 pm It is so easy and so cheap to buy storage. So this is really not an issue (And if you really want you can make an installation Option to choose with maps and resolutions you would like to make availabable offline).

Andy
You are missing the point. It was stated definitively that the typical CMO player has 50TB of non-streaming storage available. I call that a little BS.
50TB? Do you mean 50GB? You can buy very fast external storage (NVME/SSD 1TB for half the price of the game....). 5-10 years go i agree but not now...
Post Reply

Return to “Command: Modern Operations series”