Skip to main content
Question

1 bit TIFF raster


HI!

I have several 1 bit GeoTIFF rasters which I want to project to a different UTM-zone. The workbench is fairly easy and seems to work fine (read GeoTIFF -> project raster -> write GeoTIFF). However, the resulting  rasters aren't interpreted as 1 bit, even though they appear to be 1 bit. I have tried all compression methods in the GeoTIFF writer without success. Any tips?

15 replies

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • May 6, 2013
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.

  • Author
  • May 6, 2013

Hi!

I have set the bits per cell to 1, that's why I can't figure this out.


fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • May 6, 2013
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

  • Author
  • May 6, 2013

 

When I look here, it looks like there is a band interpretation that may be the problem.

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • May 6, 2013
cant really tell from here......

  • Author
  • May 6, 2013
Image is not displayed, it seems.

 

 here's URL: https://docs.google.com/file/d/0B0t36VuLgaReRWNjR0RudkFHWjQ/edit?usp=sharing

 


fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • May 6, 2013
according to your post, the bit depth is 8 and the interpretation 8 UINT, so after reprojecting you should get the same properties. 

takashi
Evangelist
  • May 6, 2013
Hi,

 

 

geotiff_number_of_bits_per_cell = 1 is indicating the data is 1-bit geotiff raster?

 

Takashi

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • May 6, 2013
Good call Takashi, that should solve the issue.

 

Normally reprojection should not have any effect on the raster interpretation.

  • Author
  • May 6, 2013
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?

 

 


  • Author
  • May 7, 2013
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

  • May 23, 2013
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

 


  • Author
  • May 23, 2013
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

  • June 25, 2013
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.

taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • January 30, 2017
@takashi

 

geotiff_number_of_bits_per_cell = 1 ,

 

I didn't know there was such a parameter, it was really useful. Thank you!

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings