Could you please provide an example of the problem with R code, so we have
something concrete to experiment with?

I could work out the required options and a sample dataset etc. but
presumably that is something you can do with less effort.

You should be able to investigate the generated file with the gdal command
line tools to figure out the problem.

Cheers, Mike.

On Fri, Nov 5, 2010 at 10:05 AM, Oliver Soong
<osoong+r@gmail.com<osoong%2Br@gmail.com>
> wrote:

> Hello,
>
> I can't seem to write a multi-band 1-bit CCITT-compressed GeoTIFF
> (using any of the CCITT compression methods).  The file writes, but
> when reloaded the data are wrong (I can't tell for sure whether this
> is a read or write problem).  I can write a 1-band 1-bit
> CCITT-compressed GeoTIFF fine, and I can write a multi-band 1-bit
> deflate-compressed GeoTIFF fine.  This is on Windows XP x86, R 2.12.0,
> rgdal 0.6-28, sp 0.9-72, GDAL 1.7.1, PROJ.4 4.7.1.
>
> On a similar note, only GDAL seems to be able to handle any multi-band
> 1-bit GeoTIFFs it produces.  ArcGIS 10 explicitly states (somewhere
> deep in their documentation) that multi-band 1-bit TIFFs are not
> supported.  Even without compression, ENVI throws an error about an
> array with a corrupted descriptor, then crashes out.
>
> Is this a bug, or a limitation of TIFF, CCITT, or GDAL that I'm not aware
> of?
>
> Thoughts are appreciated,
> Oliver
>
>
> --
> Oliver Soong
> Donald Bren School of Environmental Science & Management
> University of California, Santa Barbara
> Santa Barbara, CA 93106-5131
> 805-893-7044 (office)
> 610-291-9706 (cell)
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner@gmail.com

	[[alternative HTML version deleted]]

