Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Significantly faster projection
Browse files Browse the repository at this point in the history
This makes gdalwarp use multithreading and use a larger cache
  • Loading branch information
Xerbo committed Jan 1, 2022
1 parent 8066c6a commit d7fd787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projectdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void ProjectDialog::start(Imager sensor) {
QString program = "gdalwarp";
#endif
QStringList arguments;
arguments << "-overwrite" << "-r" << interpolation << "-tps" << "-t_srs" << epsg << (QString::fromStdString(get_temp_dir()) + "/image.vrt") << outputFilename;
arguments << "-multi" << "-wm" << "512" << "-wo" << "NUM_THREADS=ALL_CPUS" << "-overwrite" << "-r" << interpolation << "-tps" << "-t_srs" << epsg << (QString::fromStdString(get_temp_dir()) + "/image.vrt") << outputFilename;

history = "Command: " + program + " " + arguments.join(" ") + "\n";

Expand Down

0 comments on commit d7fd787

Please sign in to comment.