mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
b23225c6b1
Signed-off-by: David Spencer <baildon.research@googlemail.com>
31 lines
938 B
Diff
31 lines
938 B
Diff
diff --git a/IO/GDAL/vtkGDALVectorReader.cxx b/IO/GDAL/vtkGDALVectorReader.cxx
|
|
index 86854a0..a0e234a 100644
|
|
--- a/IO/GDAL/vtkGDALVectorReader.cxx
|
|
+++ b/IO/GDAL/vtkGDALVectorReader.cxx
|
|
@@ -44,7 +44,7 @@ class vtkGDALVectorReader::Internal
|
|
public:
|
|
Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds )
|
|
{
|
|
- this->Source = OGRSFDriverRegistrar::Open( srcName, srcMode, &this->Driver );
|
|
+ this->Source = (GDALDataset*) OGROpen( srcName, srcMode, NULL );
|
|
if ( ! this->Source )
|
|
{
|
|
this->LastError = CPLGetLastErrorMsg();
|
|
@@ -61,7 +61,7 @@ public:
|
|
{
|
|
if ( this->Source )
|
|
{
|
|
- OGRDataSource::DestroyDataSource( this->Source );
|
|
+ GDALClose( (GDALDatasetH) this->Source );
|
|
}
|
|
}
|
|
|
|
@@ -304,7 +304,7 @@ public:
|
|
return nCells;
|
|
}
|
|
|
|
- OGRDataSource* Source;
|
|
+ GDALDataset* Source;
|
|
OGRSFDriver* Driver;
|
|
const char* LastError;
|
|
int LayerIdx;
|