Ejemplo n.º 1
0
OGRDataSource *OGRGPSBabelDriver::CreateDataSource( const char * pszName,
                                               char **papszOptions )

{
    OGRGPSBabelWriteDataSource   *poDS = new OGRGPSBabelWriteDataSource();

    if( !poDS->Create( pszName, papszOptions ) )
    {
        delete poDS;
        poDS = NULL;
    }

    return poDS;
}
Ejemplo n.º 2
0
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;
}