Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 554316
Collapse All | Expand All

(-)a/IO/GDAL/vtkGDALVectorReader.cxx (-3 / +3 lines)
Lines 44-50 class vtkGDALVectorReader::Internal Link Here
44
public:
44
public:
45
  Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds )
45
  Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds )
46
    {
46
    {
47
    this->Source = OGRSFDriverRegistrar::Open( srcName, srcMode, &this->Driver );
47
    this->Source = (GDALDataset*) OGROpen( srcName, srcMode, NULL );
48
    if ( ! this->Source )
48
    if ( ! this->Source )
49
      {
49
      {
50
      this->LastError = CPLGetLastErrorMsg();
50
      this->LastError = CPLGetLastErrorMsg();
Lines 61-67 public: Link Here
61
    {
61
    {
62
    if ( this->Source )
62
    if ( this->Source )
63
      {
63
      {
64
      OGRDataSource::DestroyDataSource( this->Source );
64
      GDALClose( (GDALDatasetH) this->Source );
65
      }
65
      }
66
    }
66
    }
Lines 304-310 public: Link Here
304
    return nCells;
304
    return nCells;
305
    }
305
    }
306
  OGRDataSource* Source;
306
  GDALDataset* Source;
307
  OGRSFDriver* Driver;
307
  OGRSFDriver* Driver;
308
  const char* LastError;
308
  const char* LastError;
309
  int LayerIdx;
309
  int LayerIdx;

Return to bug 554316