hoche / splat

SPLAT! is an RF Signal Propagation, Loss, And Terrain analysis tool for the spectrum between 20 MHz and 20 GHz. This is a copy of the code written by John Magliacane, heavily modified to clean up the code and take advantage of multithreading. This incorporates John's antenna height modifications from the as-yet-unreleased SPLAT 1.4.3.
http://www.qsl.net/kd2bd/splat.html
GNU General Public License v2.0
30 stars 6 forks source link

Add GDAL input for DEM files #26

Open der-stefan opened 4 years ago

der-stefan commented 4 years ago

I'm still wondering if the SPLAT data files (*.sdf) are really necessary. Wouldn't it be possible to load a digital elevation model (DEM) into the RAM on the fly just after calculating the geographical extent? In any case, it would be very useful to read geotiffs or other DEM file formats supported by GDAL directly without invoking srtm2sdf. As a side note: For OpenTopoMap I prefer to have a global single geotif file, that is internally tiled. Selection of some extents is very fast.

dBitech commented 4 years ago

+1 for this, this would be the first step in allowing other DEM resolutions (think fractional meter LIDAR), available in many parts of the world to be used.

der-stefan commented 3 years ago

Yes, but just one step. If I remember correctly, the two selectable resolutions are hard-coded. But shouldn't be a problem to just use the resolution of the input DEM file.

dBitech commented 3 years ago

Correct, getting the pixel size (resolution) out of a gdal supported input DEM is trivial. The following explains the nuances using gdalinfo https://gis.stackexchange.com/questions/281132/why-doesnt-gdalinfo-report-pixel-size