here in this tutorial you see that the format of the datasource is .shp meaning that it can just have one layer. I want to know what are the datasources that gdal suppots?
and can have more than 1 layer in?
OGRDataSource *poDS;
poDS = OGRSFDriverRegistrar::Open( "point.shp", FALSE );
if( poDS == NULL )
{
printf( "Open failed.n" );
exit( 1 );
}
OGRLayer *poLayer;
poLayer = poDS->GetLayerByName( "point" );