Merge pull request #6 from peterburlakov/master

run parameters for GCP file changed, according to ODM changes
pull/1/head
Piero Toffanin 2017-01-24 16:32:12 -05:00 zatwierdzone przez GitHub
commit 8411ac7ede
3 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -361,8 +361,7 @@ module.exports = class Task{
runnerOptions["pmvs-num-cores"] = os.cpus().length;
if (this.gpcFiles.length > 0){
runnerOptions["odm_georeferencing-useGcp"] = true;
runnerOptions["odm_georeferencing-gcpFile"] = fs.realpathSync(path.join(this.getGpcFolderPath(), this.gpcFiles[0]));
runnerOptions["gcp"] = fs.realpathSync(path.join(this.getGpcFolderPath(), this.gpcFiles[0]));
}
this.runningProcesses.push(odmRunner.run(runnerOptions, (err, code, signal) => {

Wyświetl plik

@ -40,8 +40,8 @@ module.exports = {
// Not all options are useful to the end user
// (num cores can be set programmatically, so can gcpFile, etc.)
if (["-h", "--project-path", "--cmvs-maxImages", "--time",
"--zip-results", "--pmvs-num-cores", "--odm_georeferencing-useGcp",
"--start-with", "--odm_georeferencing-gcpFile", "--end-with"].indexOf(option) !== -1) continue;
"--zip-results", "--pmvs-num-cores",
"--start-with", "--gcp", "--end-with"].indexOf(option) !== -1) continue;
let values = json[option];

File diff suppressed because one or more lines are too long