I have a tool to automate map export to TIFF for thousands of tiles.
The active view (ArcGIS Pro 3.0.3) is exported to three (or more) TIFFs for evry tile in the main thread and in a second thread the TIFFs of a tile are merged and clipped with arcpy.management.clip().
My tool works fine.
But is it possible to clip TIFFs in a secondray thread to TIFFs with custom compression type "JPEG", "PackBits" or "NONE"?
The arcpy.management.clip() tool uses arcpy.env.compression as the compression type of the output raster. (Default LZW for TIFF).
Setting arcpy.env.compression in the secondary thread throws an exception "AttributeError: ERROR 87934" - I think arcpy.env from the main thread cannot be used in a secondary thread.
The arcpy.management.clip() tool in Secondary does not accept arcpy.env from the main thread. It seems that the tool works with the standard arcpy.env/without any settings.
Does anyone have any ideas (other than working with subprocesses)?