Update 'lasmerge_wrapper.ps1'
This commit is contained in:
parent
fe579e0545
commit
92bf83a463
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ Get-ChildItem $lasFilePath\* -Include *.las, *.laz |
|
|||
Write-Host "Starting $fileNameFullGround"
|
||||
|
||||
# generating output filename
|
||||
$outputFilename = $_.Name.split(".la")[0] # will be used to match object file name
|
||||
$outputFilename = $_.Name.split("_BE")[0] # will be used to match object file name
|
||||
$outputFile = Join-Path $lasFilePathGround $outputFilename
|
||||
$outputFile = Join-Path $outputFile "laz"
|
||||
$outputFile = Join-Path $outputFile ".laz"
|
||||
|
||||
# getting object las filename
|
||||
Get-ChildItem $lasFilePathObject\* -Include *.las, *.laz | ForEach-Object {
|
||||
|
@ -48,7 +48,7 @@ Get-ChildItem $lasFilePath\* -Include *.las, *.laz |
|
|||
$Process = Start-Process -FilePath $lasmerge -ArgumentList $allArguments -Wait #-ArgumentList "$allArguments" -Wait
|
||||
}
|
||||
Catch{
|
||||
Write-Host "Failed with files " $allArguments
|
||||
Write-Host "Failed with files $fileNameFullGround $fileNameObject"
|
||||
Continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue