AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.08.19 12:15 "[Tiff] Tiff conversion using libTiff", by Alexandru, Ionita
[...]
2004.08.23 15:30 "RE: [Tiff] Tiff conversion using libTiff", by Alexandru, Ionita
2004.08.23 15:47 "[Tiff] tiffset - photometricinterpretation problems", by Frank Warmerdam
[...]

2004.08.23 15:47 "[Tiff] tiffset - photometricinterpretation problems", by Frank Warmerdam

I've tried to set this fields using tiffset from libtiff, but this error occurs:

D:\work>tiffset -s PhotometricInterpretation 1 TsrFile.tiff TIFFSetField: TsrFile.tiff: Unknown pseudo-tag 4294967295. Failed to set PhotometricInterpretation=1

D:\work>tiffset -s SamplesPerPixel 1 TsrFile.tiff TIFFSetField: TsrFile.tiff: Unknown pseudo-tag 4294967295. Failed to set SamplesPerPixel=1

And another thing that I didn't mentionate is that I'm using windows XP, and libtiff is accessed from java, through command Line executed with java.Runtime.getRuntime.exec(commandString). I have to do all this opperations in this conditions.

Ionita,

This problem has undergone substantial revision since the last public release (I think), and I don't get the same message. Instead I get the value set improperly. I have created a bug report for this at:

   http://bugzilla.remotesensing.org/show_bug.cgi?id=600

If you know a set of particular fields you want to be able to set you might want to just hack tiffset.c to handle them properly.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent