Hello list !<br><br>I use the gdalwarp tool to change the projection of a GeoTiff file but the most of the metadata of the source file are lost, which is not the case with the gdal_translate tool.<br>Particularly, the following metadata are lost :<br>
TIFFTAG_DOCUMENTNAME<br> TIFFTAG_IMAGEDESCRIPTION<br> TIFFTAG_SOFTWARE<br> TIFFTAG_DATETIME<br> TIFFTAG_ARTIST<br> TIFFTAG_HOSTCOMPUTER<br><br>Do I miss something ?<br><br><br>The command :<br><br>gdalwarp -t_srs EPSG:4326 srcfile.tif outfile.tif<br>
<br><br>The gdalinfo output on the source file, followed by the gdalinfo output on the output file :<br><br>Driver: GTiff/GeoTIFF<br>Files: srcfile.tif<br>Size is 2500, 2500<br>Coordinate System is:<br>PROJCS["Geostationary_Satellite",<br>
GEOGCS["GCS_unnamed ellipse",<br> DATUM["D_unknown",<br> SPHEROID["Unknown",6378160,298.2539162964669]],<br> PRIMEM["Greenwich",0],<br> UNIT["Degree",0.017453292519943295]],<br>
PROJECTION["Geostationary_Satellite"],<br> PARAMETER["central_meridian",57],<br> PARAMETER["satellite_height",35785846.6396],<br> PARAMETER["false_easting",0],<br> PARAMETER["false_northing",0],<br>
UNIT["Meter",1]]<br>Origin = (-5620805.668447489850223,5620805.668447489850223)<br>Pixel Size = (4496.644534757992005,-4496.644534757992005)<br>Metadata:<br> TIFFTAG_DOCUMENTNAME=documentname<br> TIFFTAG_IMAGEDESCRIPTION=productidentification={<br>
"observedProperty":"observedProperty",<br> "process":"process",<br>}<br> TIFFTAG_SOFTWARE=software<br> TIFFTAG_DATETIME=2011:11:10 11:00:00<br> TIFFTAG_ARTIST=artist<br>
TIFFTAG_HOSTCOMPUTER=computer<br> AREA_OR_POINT=Area<br>Image Structure Metadata:<br> COMPRESSION=JPEG<br> INTERLEAVE=BAND<br>Corner Coordinates:<br>ERROR 1: tolerance condition error<br>Upper Left (-5620805.668, 5620805.668) <br>
ERROR 1: tolerance condition error<br>Lower Left (-5620805.668,-5620805.668) <br>ERROR 1: tolerance condition error<br>Upper Right ( 5620805.668, 5620805.668) <br>ERROR 1: tolerance condition error<br>Lower Right ( 5620805.668,-5620805.668) <br>
Center ( 0.0000000, 0.0000000) ( 57d 0'0.00"E, 0d 0'0.01"N)<br>Band 1 Block=2500x1 Type=Byte, ColorInterp=Gray<br><br><br>The gdalinfo output on the output file :<br><br>Driver: GTiff/GeoTIFF<br>
Files: outfile.tif<br>Size is 1673, 1673<br>Coordinate System is:<br>GEOGCS["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.257223563,<br> AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br> AUTHORITY["EPSG","4326"]]<br>Origin = (0.000000000000000,70.000000000000000)<br>
Pixel Size = (0.059772863120143,-0.059772863120143)<br>Metadata:<br> AREA_OR_POINT=Area<br>Image Structure Metadata:<br> INTERLEAVE=BAND<br>Corner Coordinates:<br>Upper Left ( 0.0000000, 70.0000000) ( 0d 0'0.01"E, 70d 0'0.00"N)<br>
Lower Left ( 0.0000000, -30.0000000) ( 0d 0'0.01"E, 30d 0'0.00"S)<br>Upper Right ( 100.0000000, 70.0000000) (100d 0'0.00"E, 70d 0'0.00"N)<br>Lower Right ( 100.0000000, -30.0000000) (100d 0'0.00"E, 30d 0'0.00"S)<br>
Center ( 50.0000000, 20.0000000) ( 50d 0'0.00"E, 20d 0'0.00"N)<br>Band 1 Block=1673x4 Type=Byte, ColorInterp=Gray<br><br><style>
qtl {
        position: absolute;
        border: 1px solid #cccccc;
        -moz-border-radius: 5px;
        opacity: 0.2;
        line-height: 100%;
        z-index: 999;
        direction: ltr;
}
qtl:hover,qtl.open {
        opacity: 1;
}
qtl,qtlbar {
        height: 22px;
}
qtlbar {
        display: block;
        width: 100%;
        background-color: #cccccc;
        cursor: move;
}
qtlbar img {
        border: 0;
        padding: 3px;
        height: 16px;
        width: 16px;
        cursor: pointer;
}
qtlbar img:hover {
        background-color: #aaaaff;
}
qtl>iframe {
        border: 0;
        height: 0;
        width: 0;
}
qtl.open {
        height: auto;        
}
qtl.open>iframe {
        height: 200px;
        width: 300px;
}
</style>
        <img src="http://www.qtl.co.il/img/copy.png" title="Copy Selction"><a href="http://int.ask.com/web?siteid=10000861&webqsrc=999&l=dis&q=dust%20RGB%20composite" title="Search With Ask" target="_blank"><img src="http://www.ask.com/favicon.ico"></a><img src="http://translate.google.com/favicon.ico" title="Translate With Google">