kopia lustrzana https://github.com/OpenDroneMap/ODM
Better crop description, disable crop on DEMs when crop is set to zero
rodzic
24ab59b804
commit
5d388210c1
|
@ -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',
|
||||
|
|
|
@ -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 ''
|
||||
|
|
Ładowanie…
Reference in New Issue