[gdal-dev] CreateCopy() from gtiff file does not initialize AREA_OR_POINT metadata
Etienne Tourigny
etourigny.dev at gmail.com
Thu May 31 10:47:38 PDT 2012
When using a driver's CreateCopy function to copy a source dataset in
GTiff format, It seems that the AREA_OR_POINT metadata is not
initialized.
This is seemingly for performance reasons as shown in the code below.
However, it has the unwanted side-effect that the AREA_OR_POINT
metadata item is not copied over in most (all?) drivers.
This may be worth fixing and certainly worth being documented somewhere.
Are there other drivers which have the same behaviour?
char **GTiffDataset::GetMetadata( const char * pszDomain )
{
[...]
/* FIXME ? Should we call LookForProjection() to load
GDALMD_AREA_OR_POINT ? */
/* This can impact performances */
return oGTiffMDMD.GetMetadata( pszDomain );
}
regards,
Etienne
More information about the gdal-dev
mailing list