OGRDataSource *OGRILI1Driver::CreateDataSource( const char * pszName, char **papszOptions ) { OGRILI1DataSource *poDS = new OGRILI1DataSource(); if( !poDS->Create( pszName, papszOptions ) ) { delete poDS; return NULL; } else return poDS; }
static GDALDataset *OGRILI1DriverCreate( const char * pszName, int nBands, int nXSize, int nYSize, GDALDataType eDT, char **papszOptions ) { OGRILI1DataSource *poDS = new OGRILI1DataSource(); if( !poDS->Create( pszName, papszOptions ) ) { delete poDS; return NULL; } else return poDS; }
static GDALDataset *OGRILI1DriverCreate( const char * pszName, int /* nBands */, int /* nXSize */, int /* nYSize */, GDALDataType /* eDT */, char **papszOptions ) { OGRILI1DataSource *poDS = new OGRILI1DataSource(); if( !poDS->Create( pszName, papszOptions ) ) { delete poDS; return NULL; } return poDS; }