void object::test<3>() { OGRSFDriverRegistrar* reg = NULL; reg = OGRSFDriverRegistrar::GetRegistrar(); ensure(NULL != reg); GDALDriver* drv = reg->GetDriverByName(drv_shape_.c_str()); ensure("Shapefile driver is not registered", NULL != drv); }
OGRDataSource *AoIIntersection::buildIntersectionDataSource ( const char *outFmt ) { // get driver registrar OGRSFDriverRegistrar *reg = OGRSFDriverRegistrar::GetRegistrar(); // create an OGRDataSource OGRSFDriver *driverToUse = reg->GetDriverByName( outFmt ); if ( driverToUse ) { return( driverToUse->CreateDataSource( "C:\\Minerva\\Data\\intersection.mem", NULL ) ); } return 0; }