[Gdal-dev] Determining Opened File Format?

Ayman Kamal kamal_jo at yahoo.com
Sun Feb 23 03:58:25 EST 2003


Your technique didn't work, I tried it with two files
of type TIF ( not GeoTiff )

and your code didn't return that the file format isn't
GeoTiff

here is the code snap:
//////////////////////////////////////////////////////
   GDALDriverH hInputDriver;
   const char *szShortDriverName;
   hInputDriver = GDALGetDatasetDriver( hDataset );
   szShortDriverName = GDALGetDriverShortName(
hInputDriver );
   if ( 0 != strcmp(szShortDriverName,"GTiff") )
   {
      printf("\nThis is not a GeoTiff file format\n");
      return 1;
   }
//////////////////////////////////////////////////////



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the Gdal-dev mailing list