Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

What are the datasource formats in OGR [on hold]

$
0
0

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" ); 

Viewing all articles
Browse latest Browse all 397

Trending Articles