#1396 closed enhancement (fixed)
missing tiff tags to read/write metadata
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | highest | Milestone: | 1.5.0 |
Component: | GDAL_Raster | Version: | 1.3.2 |
Severity: | minor | Keywords: | tiff |
Cc: | gok@… |
Description (last modified by )
Following tif tags are missing in WriteMDMetadata(), GTiffDataset::OpenOffset() routines in geotiff.cpp: TIFFTAG_ARTIST TIFFTAG_HOSTCOMPUTER TIFFTAG_COPYRIGHT Adding it to the code does fix geoTiff read/write processes.
Attachments (1)
Change History (5)
comment:2 by , 17 years ago
Attached is a sample with 3 missing tags. Needs just to add following: File geotiff.cpp. WriteMDMetadata (somewhere around line 2404): else if( EQUAL(pszItemName,"TIFFTAG_ARTIST") ) TIFFSetField( hTIFF, TIFFTAG_ARTIST, pszItemValue ); else if( EQUAL(pszItemName,"TIFFTAG_HOSTCOMPUTER") ) TIFFSetField( hTIFF, TIFFTAG_HOSTCOMPUTER, pszItemValue ); else if( EQUAL(pszItemName,"TIFFTAG_COPYRIGHT") ) TIFFSetField( hTIFF, TIFFTAG_COPYRIGHT, pszItemValue ); GTiffDataset::OpenOffset (after inserting first it will be around line 3140): if( TIFFGetField( hTIFF, TIFFTAG_ARTIST, &pszText ) ) SetMetadataItem( "TIFFTAG_ARTIST", pszText ); if( TIFFGetField( hTIFF, TIFFTAG_HOSTCOMPUTER, &pszText ) ) SetMetadataItem( "TIFFTAG_HOSTCOMPUTER", pszText ); if( TIFFGetField( hTIFF, TIFFTAG_COPYRIGHT, &pszText ) ) SetMetadataItem( "TIFFTAG_COPYRIGHT", pszText );
comment:3 by , 17 years ago
Keywords: | tiff added |
---|---|
Milestone: | → 1.5.0 |
Resolution: | → fixed |
Status: | assigned → closed |
Changes suggested tested and commited in trunk in r12100.
Note:
See TracTickets
for help on using tickets.