2016.06.28 17:36 "[Tiff] Error messages regarding CFA tags: Unknown tags", by Fabian K

2016.06.28 20:12 "Re: [Tiff] Error messages regarding CFA tags: Unknown tags", by Even Rouault

     //Defining Bayer pattern:
    if (TIFFSetField(out, TIFFTAG_CFAPATTERN, 4, "\001\0\002\001") == -1)

--> change this to:
        if (TIFFSetField(out, TIFFTAG_CFAPATTERN, "\001\0\002\001") == -1)

With this fix and libtiff head, tiffinfo outputs without warning:

TIFF Directory at offset 0x10 (16)
    Subfile Type: (0 = 0x0)
    Image Width: 2 Image Length: 2
    Bits/Sample: 16
    Compression Scheme: None
    Photometric Interpretation: 32803 (0x8023)
    Orientation: row 0 top, col 0 lhs
    Samples/Pixel: 1
    Rows/Strip: 2
    Planar Configuration: single image plane

  CFARepeatPatternDim: 2,2
  CFAPattern: 1,0,2,1
  CFALayout: 1

--
Spatialys - Geospatial professional services
http://www.spatialys.com