Hi Frank,
I'm sorry for my missing response yet. Nevertheless thank you for your helpful 
explanation!

But since it seems that there is no way getting gdal converted tif-files with 
creation option NBITS=1 properly displayed in MapInfo Professional, it might 
make sense looking for another shell program. This could work "in-a-pipe" and 
should convert a paletted gdal output file into a 1bit file without color table 
just IrfanView does. 

Do you know a free software tool that will fit my needs? Or is there another 
way to think about? If the behavior of MapInfo Professional isn't default I 
could contact Pitney Bowes for sure as well. But I wouldn't rather wait for a 
solution from there ...

Thanks so far,
Best regards
Andreas



Mit freundlichen Grüßen
Im Auftrag

Andreas Fischer

Kreis Unna - Der Landrat
Zentrale Datenverarbeitung
Friedrich-Ebert-Straße 17
59425 Unna

Fon 02 3 03 27-44 16
Fax 0 23 03 27-28 96
andreas.fisc...@kreis-unna.de
www.kreis-unna.de

-----Ursprüngliche Nachricht-----
Von: fwarmer...@gmail.com [mailto:fwarmer...@gmail.com] Im Auftrag von Frank 
Warmerdam
Gesendet: Dienstag, 15. Juni 2010 16:34
An: Fischer, Andreas
Cc: gdal-dev@lists.osgeo.org
Betreff: Re: AW: [gdal-dev] gdalwarp and GTiff creation option NBITS

On Mon, Jun 14, 2010 at 11:06 AM, Fischer, Andreas
<andreas.fisc...@kreis-unna.de> wrote:
> Hi Frank,
> thanks for your hints. I could finally use tiffinfo very easily from 
> FWTools-Shell, for I'm testing with a windows machine :-)
...
> b) File transformed with gdalwarp (gdal-file)
>
> TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered.
> TIFF Directory at offset 0x10a8036 (17465398)
>  Image Width: 11812 Image Length: 11812
>  Bits/Sample: 1
>  Sample Format: unsigned integer
>  Compression Scheme: None
>  Photometric Interpretation: palette color (RGB from colormap)
>  Samples/Pixel: 1
>  Rows/Strip: 5
>  Planar Configuration: single image plane
>  Color Map: (present)
>  Tag 42113: 255
>
>
> c) gdal-file (b) opened with IrfanView and saved as a copy without changes
>
> TIFF Directory at offset 0x10a35bc (17446332)
>  Image Width: 11812 Image Length: 11812
>  Resolution: 0, 0 pixels/inch
>  Bits/Sample: 1
>  Compression Scheme: None
>  Photometric Interpretation: min-is-white
>  Orientation: row 0 top, col 0 lhs
>  Samples/Pixel: 1
>  Rows/Strip: 5
>  Planar Configuration: single image plane
>  Software: IrfanView

Andreas,

The most obvious difference between these is that the GDAL
generated file has a color table while IrfanView does not save
one with it's 1 bit output file.  It would appear that some software
packages do not properly support paletted one bit files.

Unfortunately, because GDAL "sees" the min-is-white
input file as paletted it produces a paletted output file.  I
cannot think of an easy way of avoiding this.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der 
potentiellen Gefahr auf den Uebertragungswegen wird zu einer 
Vireneingangskontrolle geraten. Eine Haftung für Virenfreiheit
wird ausgeschlossen.


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to