1
0
Fork 0

Fix ogr-decode file opening error

This commit is contained in:
Christian Schmitt 2015-10-23 13:32:29 +02:00
parent 8f48b13f09
commit 15c9d83a46

View file

@ -652,7 +652,7 @@ int main( int argc, char **argv ) {
GDALAllRegister();
GDALDataset *poDS;
poDS = (GDALDataset*) GDALOpen( datasource.c_str(), GA_ReadOnly );
poDS = (GDALDataset*) GDALOpenEx( datasource.c_str(), GDAL_OF_VECTOR, NULL, NULL, NULL );
if( poDS == NULL )
{
SG_LOG( SG_GENERAL, SG_ALERT, "Failed opening datasource " << datasource );