heremaps / tin-terrain

A command-line tool for converting heightmaps in GeoTIFF format into tiled optimized meshes.
MIT License
586 stars 127 forks source link

capture bad_alloc if it ever happens #46

Open adrpar opened 5 years ago

adrpar commented 5 years ago

however usually the OOM killer steps in before that...

adrpar commented 5 years ago

I added the two main loop functions to reduce the width of how open the try catch will be. And to separate all the stuff needed to actually run the code from input argument parsing and validation (which could be even more separated IMO).

Will address the comments tomorrow.