Open dharmab opened 1 month ago
Building the elevation maps will likely be a spinoff project in a separate Git repo.
DCS_func_getHeight
to sample many points across a map. Write the samples to a file.SkyEye could embed the maps if we can keep the total binary size under about 2GB. Otherwise, provide the elevation maps as a separate optional download.
The samples can be quite coarse for our purposes - e.g. sampling every 5m to a resolution of 1m is probably more than enough.
Alternative TacView has an API to get elevation, which may be easier to work with. https://discord.com/channels/478955787268522018/809796004891197521/1266458113519653037
Chatting with people on Discord, another way to do this would be to create a synthetic ACMI stream using dcs-grpc that includes the AGL data. Apparently there's code out there that can already do this to create redacted tacview data.
Currently we use a 50 knot speed filter to remove parked aircraft. However this also removes slow-flying helicopters that should logically be visible because of their large rotating rotors.
Tacview does not seem to consistently export AGL data from DCS World, so we'll need to build elevation maps and compare them to each contact's MSL altitude. The orb library has a subpackage for working with elevation map tiles, so once we get the data out of DCS we can use standard GIS techniques for this.
If an elevation map is not available, fall back on the speed filter.