From a92209215d8d0df401a4d0c90c95b1008f550fc6 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 14 Aug 2018 11:47:15 +1000 Subject: [PATCH] Export classified, clipped las for delivery --- las_outputs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/las_outputs.py b/las_outputs.py index 0e5ae36..2d97500 100644 --- a/las_outputs.py +++ b/las_outputs.py @@ -227,8 +227,9 @@ def process(yaml_file): print('Cropping swash...') las_data = call_lastools('lasclip', input=input_las, output='-stdout', args=['-poly', crop_swash_poly], verbose=False) - - las_name = 'crop-1.las' + + # Export classified, clipped las for delivery to client + las_name = os.path.join(output_las_dir, las_basename + '.las') with open (las_name, 'wb') as f: f.write(las_data) @@ -238,7 +239,6 @@ def process(yaml_file): args=['-poly', crop_heatmap_poly], verbose=False) - # Create clipping polygon for heatmap raster print('Creating heat map cropping polygon...') shp_name = os.path.join(output_poly_dir, las_basename + '.shp')