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