]>
Commit | Line | Data |
---|---|---|
8aed1503 JR |
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 | |
6 | public: | |
7 | Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds ) | |
8 | { | |
9 | - this->Source = OGRSFDriverRegistrar::Open( srcName, srcMode, &this->Driver ); | |
10 | + this->Source = (GDALDataset*) OGROpen( srcName, srcMode, NULL ); | |
11 | if ( ! this->Source ) | |
12 | { | |
13 | this->LastError = CPLGetLastErrorMsg(); | |
14 | @@ -61,7 +61,7 @@ public: | |
15 | { | |
16 | if ( this->Source ) | |
17 | { | |
18 | - OGRDataSource::DestroyDataSource( this->Source ); | |
19 | + GDALClose( (GDALDatasetH) this->Source ); | |
20 | } | |
21 | } | |
22 | ||
23 | @@ -304,7 +304,7 @@ public: | |
24 | return nCells; | |
25 | } | |
26 | ||
27 | - OGRDataSource* Source; | |
28 | + GDALDataset* Source; | |
29 | OGRSFDriver* Driver; | |
30 | const char* LastError; | |
31 | int LayerIdx; |