added option for zipping results

pull/117/head
Dakota Benjamin 2015-06-09 13:11:25 -04:00
rodzic d367d74786
commit 4f10772627
1 zmienionych plików z 16 dodań i 0 usunięć

16
run.pl
Wyświetl plik

@ -105,6 +105,8 @@ sub parseArgs {
$args{"--odm_georeferencing-gcpFile"} = "gcp_list.txt";
$args{"--odm_georeferencing-useGcp"} = "true";
$args{"--zip-results"} = "true";
for($i = 0; $i <= $#ARGV; $i++) {
if($ARGV[$i] =~ /^--[^a-z\-]*/){
@ -269,6 +271,13 @@ sub parseArgs {
die "\n invalid parameter for \"".$ARGV[$i]."\": ".$ARGV[$i+1];
}
}
if($ARGV[$i] eq "--zip-results"){
if($ARGV[$i+1] eq "true" || $ARGV[$i+1] eq "false"){
$args{$ARGV[$i]} = $ARGV[$i+1];
} else {
die "\n invalid parameter for \"".$ARGV[$i]."\": ".$ARGV[$i+1];
}
}
}
}
}
@ -358,6 +367,10 @@ sub parseArgs {
print "\n default: 1";
print "\n Number of points per octree node, recommended value: 1.0";
print "\n --zip_results: <true|false>";
print "\n default: true";
print "\n Set to false if you do not want to have gunzipped tarball of the results.";
exit;
}
@ -827,6 +840,9 @@ switch ($args{"--start-with"}) {
case "odm_orthophoto" { odm_orthophoto(); }
}
print "\n";
print "\n - done - "; now(); print "\n";
print "\n";