From 7261c29efc9885817f2b10afbe5ac10fc4c477eb Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 4 Dec 2023 22:49:06 -0500 Subject: [PATCH] Respect max_tile_size parameter --- opendm/dem/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opendm/dem/commands.py b/opendm/dem/commands.py index 84af5c7d..76959bd3 100755 --- a/opendm/dem/commands.py +++ b/opendm/dem/commands.py @@ -80,7 +80,8 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56'] 'resolution': resolution, 'maxTiles': 0 if max_tiles is None else max_tiles, 'decimation': 1 if decimation is None else decimation, - 'classification': 2 if dem_type == 'dtm' else -1 + 'classification': 2 if dem_type == 'dtm' else -1, + 'tileSize': max_tile_size } system.run('renderdem "{input}" ' '--outdir "{outdir}" ' @@ -90,7 +91,7 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56'] '--max-tiles {maxTiles} ' '--decimation {decimation} ' '--classification {classification} ' - '--tile-size 4096 ' + '--tile-size {tileSize} ' '--force '.format(**kwargs), env_vars={'OMP_NUM_THREADS': max_workers}) output_file = "%s.tif" % dem_type