<DIV>hello everyone:</DIV>
<DIV> i am new with gdal and very interested in it.now i want create a geotiff,including an image and much metadata such as create time,image format,image resource and so on.my codes are like this:</DIV>
<DIV>GDALDataset *poDstDS;//创建数据集 <BR>GDALAllRegister();<BR>GDALDriver *poDriver;//创建驱动<BR>poDriver=GetGDALDriverManager()->GetDriverByName("GTIFF");//驱动指向Gtiff<BR>char **papszOptions = NULL;<BR>char *pszDstFilename;</DIV>
<DIV> int width=0;<BR> int height=0;<BR> int band=1;<BR> poDstDS = poDriver->Create( pszDstFilename, width,height,band,GDT_Byte, papszOptions ); </DIV>
<DIV> char *pszNewDesc="";<BR> poDstDS->SetDescription(pszNewDesc;</DIV>
<DIV> poDstDS->SetMetadataItem(imageType,"",NULL);<BR> poDstDS->SetMetadataItem(imageId,"",NULL);<BR> poDstDS->SetMetadataItem(imageAddress,"",NULL);</DIV>
<DIV>i know it must be wrong,in fact that is my destination.who can help me to realize the function.thanks.</DIV>
<DIV> </DIV>