This is a small, rough around the edges, application that allows you to easily use Sonny's LiDAR models with Ortho4XP.
It achieves this by mapping out the expected 10x10 grid directories within Ortho4XP's 'Elevation_data' directory. The reason for this approach is convenience so that you don't have to manully specify the per-tile configuration to point to each HGT file.
For now this is a command line app. I may eventually turn this into a UI app to promote a better user-experience.
To use this, you must first have downloaded the files via Sonny's LiDAR sources. Afterwards, extract all HGT files into a single directory.
The application accepts arguments for absolute path to the LiDAR sources as well as the Ortho4XP Elevation_data directory. These should be fully qualified paths and should optionally be wrapped in quotes if the file path contains spaces.
Example:
Windows:
sonny_sorter.exe -s "C:\Users\Me\Downloads\LiDAR\Extracted" -d "C:\Users\Me\Documents\Ortho4XP\_internal\Ortho4XP_Data\Elevation_data"
Unix:
./sonny_sorter -s ~/Downloads/LiDAR/Extracted -d ~/Documents/Ortho4XP/_internal/Ortho4XP_Data/Elevation_data
The process this app takes to map the data to the relevant directories is as follows:
- Enumerate all HGT files to discover which are available
- Map the files to the 10x10 grid format
- Create the 10x10 grid subdirectories in the LiDAR path
- Move all files into the 10x10 grid subdirectories
- Symlink the subdirectories over to Ortho4XP's 'Elevation_data' path.