firetools / qgis2fds

An open source and free tool to export terrain elevation, landuse, and georeferencing to NIST FDS for computational fluid dynamics (CFD) wildfire or atmospheric pollutants dispersion simulations.
GNU General Public License v3.0
17 stars 13 forks source link

qgis2fds stuck when exporting very large textures #13

Closed emanuelegissi closed 4 years ago

rmcdermo commented 4 years ago

I played with Texture Layer resolution per meter and confirm that a smaller value (.01) works fine and gets me over that step in the output and then the whole export procedure takes a reasonable amount of time.

The dialog is a bit tricky, though, as the default value is 1 and this is already quite high resolution. But if you try to decrease the resolution, it just goes to 0.01 and this is the minimum.

So, first, when decreasing, the increment needs to be something other than 1. And when coarsening beyond 1 pixel per meter, the increment needs to be smaller than 1.

Actually, it might make more sense for the parameter to be meters per pixel.

rmcdermo commented 4 years ago

Another option would be to play with what file size makes sense and loads in say 1-10 seconds (1-10 MB?). Then back calculate a rough resolution based on this size to use for the default. I think we do not want this to cause a hang for new users.

emanuelegissi commented 4 years ago

Solved. Exporting a texture is much faster now, it's cancellable and there is a timeout. In the meantime I discovered another bug on texture alignment for esoteric CRSs. Now it works, and it's very precise. But I need to refactor some code.

Please, test it.

rmcdermo commented 4 years ago

OK, will do. Thanks!

rmcdermo commented 4 years ago

@emanuelegissi I have tested and confirm the new code is working well. I also updated the wiki to reflect the slight changes in Export terrain parameters.