From 92bf83a46367b58ffa797618950f04457cf16dd8 Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 14 Nov 2019 14:01:49 +0100 Subject: [PATCH] Update 'lasmerge_wrapper.ps1' --- lasmerge_wrapper.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lasmerge_wrapper.ps1 b/lasmerge_wrapper.ps1 index 615b97d..78bff78 100644 --- a/lasmerge_wrapper.ps1 +++ b/lasmerge_wrapper.ps1 @@ -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 } }