Force Write operator to tile and compress output

Good morning,

I was wondering if it would be possible to force the Write operator to tile and to compress (LZW) the output tif image by default (changing a settings file) ?

Until now, I have to launch process by GPT with options :
-Dsnap.dataio.bigtiff.tiling.width=256
-Dsnap.dataio.bigtiff.tiling.height=256
-Dsnap.dataio.bigtiff.compression.type=LZW

if I change the snap.properties with :
snap.dataio.bigtiff.tiling.width=512
snap.dataio.bigtiff.tiling.height=512
snap.dataio.bigtiff.compression.type=LZW

I get a graph error : ’ Error in graph : For input string : “512”’

Regards,

Guillaume

Actually you have already found the properties you need to change.
There is also the property ‘snap.dataio.bigtiff.compression.quality’ for changing the compression factor.
Default is a value of 0.75 and it must be between 0.0 and 1.0
Seeing this error message I guess that there is something else wrong with your graph and the error message is just misleading. Try running gpt with the -e option. Then gpt should be more verbose in case of an error.

If you like you can add the properties to the snap.properties file in the etc folder of the snap.installation directory.

Launching a standard graph with images:

The exact same graph work when removing
snap.dataio.bigtiff.tiling.width=512
snap.dataio.bigtiff.tiling.height=512
from the snap.properties file.

I just did a simple test.
I read a Landsat 8 product and wrote it using the graph builder.


I’ve also set the properties
snap.dataio.bigtiff.compression.type=LZW
snap.dataio.bigtiff.tiling.width=512
snap.dataio.bigtiff.tiling.height=512

It works fine. So I don’t think that the root cause are the properties. Maybe it interferes with some of the operators you use. Maybe you can provide the graph xml file. Or strip it down and then add one after the other and see when the error occurs.

@Luis Have you heard about this before?

Changing the order from
snap.dataio.bigtiff.tiling.width=512
snap.dataio.bigtiff.tiling.height=512
snap.dataio.bigtiff.compression.type=LZW

to
snap.dataio.bigtiff.compression.type=LZW
snap.dataio.bigtiff.tiling.width=512
snap.dataio.bigtiff.tiling.height=512

it works fine. But weird order bug. Thank you !

This is really strange. :confused: