OGRDataSource *OGRGMLDriver::Open( const char * pszFilename, int bUpdate ) { OGRGMLDataSource *poDS; if( bUpdate ) return NULL; poDS = new OGRGMLDataSource(); if( !poDS->Open( pszFilename ) ) { delete poDS; return NULL; } else return poDS; }
static GDALDataset *OGRGMLDriverOpen( GDALOpenInfo* poOpenInfo ) { OGRGMLDataSource *poDS; if( poOpenInfo->eAccess == GA_Update ) return NULL; if( OGRGMLDriverIdentify( poOpenInfo ) == FALSE ) return NULL; poDS = new OGRGMLDataSource(); if( !poDS->Open( poOpenInfo ) ) { delete poDS; return NULL; } else return poDS; }