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 } }