summaryrefslogtreecommitdiff
path: root/libraries/VTK/patch-gdal2.diff
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-07-14 12:17:17 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-17 07:49:55 +0700
commitb23225c6b1039e1ec16ab3e4367b9f35e8fc0339 (patch)
tree977b019d056cd84b4654b4a6e97c8a6e9c598d9d /libraries/VTK/patch-gdal2.diff
parente6b2c607c7aef73402759625daf757c8d2195be8 (diff)
downloadslackbuilds-b23225c6b1039e1ec16ab3e4367b9f35e8fc0339.tar.gz
libraries/VTK: Moved to /usr from /opt.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'libraries/VTK/patch-gdal2.diff')
-rw-r--r--libraries/VTK/patch-gdal2.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/libraries/VTK/patch-gdal2.diff b/libraries/VTK/patch-gdal2.diff
new file mode 100644
index 0000000000..36c33ee14c
--- /dev/null
+++ b/libraries/VTK/patch-gdal2.diff
@@ -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;