hello everyone:
      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:
 GDALDataset *poDstDS;//创建数据集 
GDALAllRegister();
GDALDriver *poDriver;//创建驱动
poDriver=GetGDALDriverManager()->GetDriverByName("GTIFF");//驱动指向Gtiff
char **papszOptions = NULL;
char *pszDstFilename;
  int width=0;
 int height=0;
 int band=1;
 poDstDS = poDriver->Create( pszDstFilename, width,height,band,GDT_Byte, 
papszOptions ); 
   char *pszNewDesc="";
  poDstDS->SetDescription(pszNewDesc;
   poDstDS->SetMetadataItem(imageType,"",NULL);
  poDstDS->SetMetadataItem(imageId,"",NULL);
  poDstDS->SetMetadataItem(imageAddress,"",NULL);
 i know it must be wrong,in fact that is my destination.who can help me to 
realize the function.thanks.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to