4
« on: May 12, 2020, 03:31:00 PM »
I have set up a complete processing pipeline using the Python API (v 1.6.2) and I run into a problem when I try to export big raster using the BigTIFF compression. I am using the following bit of code for the orthomosaic export:
compression = mts.ImageCompression
compression.tiff_big = True # Enable BigTiff compression. Found in another post in the forum
chunk.exportRaster(output_tifname, projection=projection, source_data=mts.OrthomosaicData, image_compression=compression, image_format=mts.ImageFormat.ImageFormatTIFF)
It will always return the following error:
TypeError: invalid value type
I have traced it to the image_compression
argument, by eliminating all other possible error sources. Also, when I use the split_in_blocks
option, the export works and exports the individual blocks.
What have I done wrong?