In a different thread the topic came up that you need a tool to generate map_h files from satellite data.
I have already been working on this for my own simulator, so I thought I could do something to help.
This is part of the mission builder for my game, but if you think it is useful I can polish it a little and release it early so you can use it to help generate IL2 maps.
You hit "New Mission" and you will see this screen.
Drag out the region you are interested in and hit one of the snap buttons. The system only works for integer latitude and longitudes because the SRTM data is organised that way.
One the next screen it downloads any SRTM files that don't exist for you.
The list on the left is the files that don't exist. It will try and download them for you. Note it is common for files to not exist. Only regions that contain land masses are stored in the database.
The middle window shows you the progress, the right window details what has been done. As you can see I already had 40 of the files already, so it didn't bother to download those.
Then it generates an atlas. This isn't used in IL2, but I need it.
The left display shows the bathymetry data for the region with black == land. The coloured bit is my atlas with green totally land, blue totally water, yellow mixed.
Hit "yes" and it will start to generate the map
The left window is the progress display
Note depending on your machine, it may crash at this point. Microsoft in their infinite wisdom copy image data before saving it to disk. So you may run out of memory for large maps.
The result is something like this.
In this image I have deleted all the water just so you can see it easier. The heights are based on 255 == 4032 Metres. I think that is correct. Also each pixel is 200 by 200 metres.
If you think this is useful please let me know and I will tidy it up and publish it, if not I will just continue on with making it for my sim.
I think I have got some distortion in the map because of the curvature of the Earth, I can fix that if needed.
Also do you need an option for 400 metres per pixel?
Not sure.
Anyway let me know if it is worthwhile completing.
Oh and happy Xmas.. or Las Posadas or Pancha Ganapati or Hanukkah or Koliada or Newtonmas or Hogswatch