本文介绍了TIFFReadDirectory使用QPixmap :: load()读取GeoTiff时的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个geotiff文件,我加载到QPixmap与QPixmap :: load()。我得到以下警告打印到控制台一堆次。然而,直接使用libtiff打开它没有警告。

I have a geotiff file which I am loading into a QPixmap with QPixmap::load( ). I get the following warnings printed to the console a bunch of times. However, direct use of libtiff opens it without warnings.

有什么想法如何减轻这些难看的警告在QT?

Any ideas on how to alleviate these unsightly warnings in QT?

TIFFReadDirectory: Warning, foo: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34736 (0x87b0) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34737 (0x87b1) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34736 (0x87b0) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34737 (0x87b1) encountered.


$ b

谢谢!

Thanks!

推荐答案

这些是可以使用libtiff库定义的自定义标签:

These are custom tags which can be defined with the libtiff library:
http://www.remotesensing.org/libtiff/addingtags.html

它们可能是EXIF标签:

They are probably EXIF tags:
http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html

这些是libtiff的已知标记:

These are the known tags to libtiff:
http://trac.imagemagick.org/browser/tiff/trunk/libtiff/tiff.h#L148

由于新定义包括类型和计数,您可能会猜到,这些标记是什么意思。也可以运行exiftool来检查未知的TIFF标签:

$ exiftool -htmldump sample.tif> /tmp/dump.html; firefox /tmp/dump.html

Since the new definitions include type and count, you may guess, what these tags mean. Also you can run exiftool to examine unknown TIFF tags:
$ exiftool -htmldump sample.tif > /tmp/dump.html; firefox /tmp/dump.html

这篇关于TIFFReadDirectory使用QPixmap :: load()读取GeoTiff时的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 15:52