summaryrefslogtreecommitdiff
path: root/graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-09 17:58:46 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-09 17:58:46 +0000
commit2fa40785683d67dce70c7193df7544cb9c1fc140 (patch)
treea3b70e3a514d326dce6d5693a97d073927e62875 /graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp
parentFix PKGNAMEPREFIX to match elasticsearch-plugin-marvel (diff)
- Update to 3.0.9
- Fix LICENSE - Strip libraries - Respect CFLAGS/CXXFLAGS - Make proj optional - Switch to options helpers - Simplify docs installation PR: 207060 Submitted by: amdmi3 Approved by: maintainer timeout (littlesavage@rambler.ru, 3 weeks)
Notes
Notes: svn path=/head/; revision=410719
Diffstat (limited to 'graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp')
-rw-r--r--graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp b/graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp
deleted file mode 100644
index 48027289f658..000000000000
--- a/graphics/mapnik/files/patch-plugins-input-ogr-ogr_layer_ptr.hpp
+++ /dev/null
@@ -1,59 +0,0 @@
-Obtained from: https://github.com/mapnik/mapnik/commit/f68291c5b47b5189d967dba01542262f2013da53
- https://github.com/mapnik/mapnik/commit/f0821d897f66c31755f7012b68191a2ec7a060fb
-
---- plugins/input/ogr/ogr_layer_ptr.hpp.orig
-+++ plugins/input/ogr/ogr_layer_ptr.hpp
-@@ -29,9 +29,16 @@
- // stl
- #include <stdexcept>
-
--// ogr
-+// gdal
-+#include <gdal_version.h>
- #include <ogrsf_frmts.h>
-
-+#if GDAL_VERSION_MAJOR >= 2
-+typedef GDALDataset* gdal_dataset_type;
-+#else
-+typedef OGRDataSource* gdal_dataset_type;
-+#endif
-+
- class ogr_layer_ptr
- {
- public:
-@@ -62,7 +69,7 @@ class ogr_layer_ptr
- is_valid_ = false;
- }
-
-- void layer_by_name(OGRDataSource* const datasource,
-+ void layer_by_name(gdal_dataset_type const datasource,
- std::string const& layer_name)
- {
- free_layer();
-@@ -84,7 +91,7 @@ class ogr_layer_ptr
- #endif
- }
-
-- void layer_by_index(OGRDataSource* const datasource,
-+ void layer_by_index(gdal_dataset_type const datasource,
- int layer_index)
- {
- free_layer();
-@@ -110,7 +117,7 @@ class ogr_layer_ptr
- #endif
- }
-
-- void layer_by_sql(OGRDataSource* const datasource,
-+ void layer_by_sql(gdal_dataset_type const datasource,
- std::string const& layer_sql)
- {
- free_layer();
-@@ -179,7 +186,7 @@ class ogr_layer_ptr
- }
- #endif
-
-- OGRDataSource* datasource_;
-+ gdal_dataset_type datasource_;
- OGRLayer* layer_;
- std::string layer_name_;
- bool owns_layer_;