Hello,
i am getting an error when exporting an orthomosaic of an large dataset. I build up a pipeline for the whole process. The part which fails is the following:
tasks = []
task = Metashape.Tasks.ExportRaster()
task.path = str(Path(*maps_path.parts[3:]).joinpath('dem.tif'))
task.source_data = Metashape.ElevationData
task.save_world = True
tasks.append(task)
task = Metashape.Tasks.ExportRaster()
task.path = str(Path(*maps_path.parts[3:]).joinpath('orthomosaic.tif'))
task.source_data = Metashape.OrthomosaicData
task.raster_transform = Metashape.RasterTransformType.RasterTransformNone
task.save_world = True
task.image_compression = Metashape.ImageCompression.TiffCompressionNone
task.image_compression.jpeg_quality = 99
task.image_compression.tiff_big = True
task.image_compression.tiff_overviews = True
task.image_compression.tiff_tiled = True
task.save_alpha = True
tasks.append(task)
network_tasks = []
for task in tasks:
if task.target == Metashape.Tasks.DocumentTarget:
network_tasks.append(task.toNetworkTask(_doc))
else:
network_tasks.append(task.toNetworkTask(_chunk))
client = Metashape.NetworkClient()
client.connect(settings.SERVER_IP)
batch_id = client.createBatch(project_path, network_tasks)
client.setBatchPaused(batch_id, False)
Up till around 3000 images everything works fine, but on a project with more than 3000 images it fails on the exporting part of the orthomosaic with the error:
ExportRaster: TIFFWriteTile: unexpected error:...
libtiff error: Maximum TIFF file size exceeded
libtiff error: Maximum TIFF file size exceeded
Is there some way of fixing this with different settings while exporting the orthomosaic? Because on manuel exporting the moasic with the same settings works fine.
Kind regards
Moritz