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