diff options
author | eolianoe | 2015-10-20 18:56:28 +0200 |
---|---|---|
committer | eolianoe | 2015-10-20 18:56:28 +0200 |
commit | 0169a04c595c2e9e117524051aebf0221de39466 (patch) | |
tree | 225727ecd6dbebc5e27dde68100fd4299a440698 /gdal2.patch | |
download | aur-0169a04c595c2e9e117524051aebf0221de39466.tar.gz |
Initial commit
Diffstat (limited to 'gdal2.patch')
-rw-r--r-- | gdal2.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gdal2.patch b/gdal2.patch new file mode 100644 index 000000000000..36c33ee14caf --- /dev/null +++ b/gdal2.patch @@ -0,0 +1,31 @@ +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; |