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