Hi,
Compression doesnt have much to do with the image underlaying interpretation, on the geo tiff writer format parameters you can state the number of bits per cell.
Hope this helps.
Hi!
I have set the bits per cell to 1, that's why I can't figure this out.
OK that makes me wonder if the inputs are 1 bit rasters or possibly there is a bug in the parameters.
Could you post a screendump of the raster properites? (dragging the pointer on a raster in the data inspector will do that)
Itay
When I look here, it looks like there is a band interpretation that may be the problem.
cant really tell from here......
according to your post, the bit depth is 8 and the interpretation 8 UINT, so after reprojecting you should get the same properties.
Hi,
geotiff_number_of_bits_per_cell = 1 is indicating the data is 1-bit geotiff raster?
Takashi
Good call Takashi, that should solve the issue.
Normally reprojection should not have any effect on the raster interpretation.
Thanks, but the thing is, I have 1 bit per cell in FME and still the number of colors is seen as 24 bit. Here's s snapshot of Image properties from Irfanview:
https://docs.google.com/file/d/0B0t36VuLgaReWHVfVVlUcHFjb2s/edit?usp=sharing
As you can see the current colors is 24 bit, not 1 bit. The original is 1 bit. Can FME write the file in such a way that I only get 1 bit current colors?
Hi again!
I have concluded that FME will not save rasters in TIFF with colordepth 2. I will therefore use IrfanView to reduce colordepth in a batch process. Thanks for your effort!
Trond
Hi,
I have the same problem using the tif writer, colordepth=2.
Setting the format parameter of the writer to 1 bits per cell doesn't help.
Is there any transformer to change the colordepth back?
aboiar
I didn't find any transformer that could set colordepth to 2. As you see in my comment I used the free IrfanView to batch-convert all my files to colordepth 2 after projection with FME.
Trond
i am using the
tiff image converter vb.net to batch convert all of my files, but i am still asking for some raster codes on this.
@takashi
geotiff_number_of_bits_per_cell = 1 ,
I didn't know there was such a parameter, it was really useful. Thank you!