Better crop description, disable crop on DEMs when crop is set to zero

pull/736/head
Piero Toffanin 2018-01-03 17:27:30 -05:00
rodzic 24ab59b804
commit 5d388210c1
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -281,7 +281,7 @@ def config():
type=int,
help=('Automatically crop image outputs by creating a smooth buffer '
'around the dataset boundaries, shrinked by N meters. '
'Set to 0 to disable cropping. '
'Use 0 to disable cropping. '
'Default: %(default)s'))
parser.add_argument('--texturing-data-term',

Wyświetl plik

@ -64,7 +64,6 @@ class ODMDEMCell(ecto.Cell):
rerun_cell:
clipper = Clipper(odm_dem_root, 'odm_georeferenced_model')
bounds_buffer_path = clipper.create_buffer_shapefile(tree.odm_georeferencing_model_las, args.crop)
# Process with lidar2dems
terrain_params_map = {
@ -80,12 +79,16 @@ class ODMDEMCell(ecto.Cell):
'slope': terrain_params[0],
'cellsize': terrain_params[1],
'outdir': odm_dem_root,
'site': bounds_buffer_path
'site': ''
}
if args.crop > 0:
bounds_buffer_path = clipper.create_buffer_shapefile(tree.odm_georeferencing_model_las, args.crop)
kwargs['site'] = '-s {}'.format(bounds_buffer_path)
l2d_params = '--slope {slope} --cellsize {cellsize} ' \
'{verbose} ' \
'-o -s {site} ' \
'-o {site} ' \
'--outdir {outdir}'.format(**kwargs)
approximate = '--approximate' if args.dem_approximate else ''