1 diff --git a/IO/GDAL/vtkGDALVectorReader.cxx b/IO/GDAL/vtkGDALVectorReader.cxx
2 index 86854a0..a0e234a 100644
3 --- a/IO/GDAL/vtkGDALVectorReader.cxx
4 +++ b/IO/GDAL/vtkGDALVectorReader.cxx
5 @@ -44,7 +44,7 @@ class vtkGDALVectorReader::Internal
7 Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds )
9 - this->Source = OGRSFDriverRegistrar::Open( srcName, srcMode, &this->Driver );
10 + this->Source = (GDALDataset*) OGROpen( srcName, srcMode, NULL );
13 this->LastError = CPLGetLastErrorMsg();
14 @@ -61,7 +61,7 @@ public:
18 - OGRDataSource::DestroyDataSource( this->Source );
19 + GDALClose( (GDALDatasetH) this->Source );
23 @@ -304,7 +304,7 @@ public:
27 - OGRDataSource* Source;
28 + GDALDataset* Source;
30 const char* LastError;