gdal3 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e4a6ca4557e3f5888b2613c24073dd4486fb59566d37e7333982128e0289bccd
4
+ data.tar.gz: 816deb41469aaec5ae27c2a10d37efd3a07dea90b39b2fddbd8259b190f5b26e
5
+ SHA512:
6
+ metadata.gz: 9281ec7ea70b9938aeaadefb84f6f33cf1731cb1858c0f3b340fdae9015bf476384347ab4947812af124989043f271fbd578a4aad17a7c7c0063e761e5dc037f
7
+ data.tar.gz: db1ecb6684a4088896d552b4f44bfa668b39f828b260047410f3186426da5b29ceaf6e99b369b75579c838dcb46c56f36e86e6d9e3af39bff5a88510b4cc85c4
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ *.so
5
+ *.bundle
6
+ .config
7
+ .yardoc
8
+ Gemfile.lock
9
+ InstalledFiles
10
+ _yardoc
11
+ coverage
12
+ doc/
13
+ lib/bundler/man
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - 2.1.5
6
+ - 2.2.1
7
+ before_install:
8
+ - sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
9
+ - sudo apt-get update
10
+ - sudo apt-get install libgdal-dev
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ ## v1.0.0
2
+ * Regenerated bindings using GDAL 1.10.1 sources and SWIG 3.0.5
3
+ * Patch for ruby 2.2.1 (Thanks @aleksejleonov and @johnjohndoe) (Issue #5)
4
+ * Fix symbol conflicts when requiring both `gdal-ruby/gdal` and `gdal-ruby/ogr` with `get_driver_by_name` and other functions (Issue #2)
5
+ * Since the symbol conflicts are now fixed, `gdal`, `ogr`, `osr` and `gdalconst` are now `require`'d be default (Issue #2)
6
+
7
+ ## v0.0.7
8
+ * Fix for building on ruby versions where `$CXXFLAGS` isn't defined
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ Copyright (c) 2012, Zac McCormick
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+ * Redistributions in binary form must reproduce the above
11
+ copyright notice, this list of conditions and the following
12
+ disclaimer in the documentation and/or other materials provided
13
+ with the distribution.
14
+ * Neither the name of the author nor the names of other
15
+ contributors may be used to endorse or promote products derived
16
+ from this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/Makefile ADDED
@@ -0,0 +1,12 @@
1
+ all: build
2
+
3
+ build:
4
+ bundle exec rake
5
+
6
+ test:
7
+ rm -rf tmp && bundle exec rake
8
+
9
+ clean:
10
+ rm -rf tmp
11
+
12
+ .PHONY: build clean test
data/README.md ADDED
@@ -0,0 +1,14 @@
1
+
2
+
3
+ # GDAL 3 for ruby
4
+
5
+ This is a fork from [gdal-ruby](https://github.com/zhm/gdal-ruby).
6
+ The original repository brings support to GDAL 3, but never publish it on rubygems.
7
+
8
+ See [gdal-ruby](https://github.com/zhm/gdal-ruby) for more informations
9
+
10
+ ## Installation
11
+
12
+ ```
13
+ bundle add gdal3
14
+ ```
data/Rakefile ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env rake
2
+ require 'rubygems'
3
+ require 'bundler'
4
+ require 'bundler/gem_tasks'
5
+ require 'rake/testtask'
6
+ require 'rake'
7
+ require 'rake/extensiontask'
8
+ require 'rspec/core'
9
+ require 'rspec/core/rake_task'
10
+
11
+ Bundler.setup
12
+
13
+ Rake::ExtensionTask.new('gdal-ruby/gdal') do |ext|
14
+ ext.name = 'gdal'
15
+ ext.lib_dir = "lib/gdal-ruby"
16
+ end
17
+
18
+ Rake::ExtensionTask.new('gdal-ruby/ogr') do |ext|
19
+ ext.name = 'ogr'
20
+ ext.lib_dir = "lib/gdal-ruby"
21
+ end
22
+
23
+ Rake::ExtensionTask.new('gdal-ruby/osr') do |ext|
24
+ ext.name = 'osr'
25
+ ext.lib_dir = "lib/gdal-ruby"
26
+ end
27
+
28
+ Rake::ExtensionTask.new('gdal-ruby/gdalconst') do |ext|
29
+ ext.name = 'gdalconst'
30
+ ext.lib_dir = "lib/gdal-ruby"
31
+ end
32
+
33
+ RSpec::Core::RakeTask.new(:spec) do |spec|
34
+ Rake::Task['compile'].invoke
35
+ spec.pattern = FileList['spec/**/*_spec.rb']
36
+ end
37
+
38
+ task :default => :spec
@@ -0,0 +1,253 @@
1
+
2
+ GDAL/OGR Licensing
3
+ ==================
4
+
5
+ This file attempts to include all licenses that apply within the GDAL/OGR
6
+ source tree, in particular any that are supposed to be exposed to the end user
7
+ for credit requirements for instance. The contents of this file can be
8
+ displayed from GDAL commandline utilities using the --license commandline
9
+ switch.
10
+
11
+
12
+ GDAL/OGR General
13
+ ----------------
14
+
15
+ In general GDAL/OGR is licensed under an MIT/X style license with the
16
+ following terms:
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a
19
+ copy of this software and associated documentation files (the "Software"),
20
+ to deal in the Software without restriction, including without limitation
21
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
22
+ and/or sell copies of the Software, and to permit persons to whom the
23
+ Software is furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included
26
+ in all copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
31
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
34
+ DEALINGS IN THE SOFTWARE.
35
+
36
+
37
+ gdal/frmts/gtiff/tif_float.c
38
+ ----------------------------
39
+
40
+ Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
41
+ Digital Ltd. LLC
42
+
43
+ All rights reserved.
44
+
45
+ Redistribution and use in source and binary forms, with or without
46
+ modification, are permitted provided that the following conditions are
47
+ met:
48
+ * Redistributions of source code must retain the above copyright
49
+ notice, this list of conditions and the following disclaimer.
50
+ * Redistributions in binary form must reproduce the above
51
+ copyright notice, this list of conditions and the following disclaimer
52
+ in the documentation and/or other materials provided with the
53
+ distribution.
54
+ * Neither the name of Industrial Light & Magic nor the names of
55
+ its contributors may be used to endorse or promote products derived
56
+ from this software without specific prior written permission.
57
+
58
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
59
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
60
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
61
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
62
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
63
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
64
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
65
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
66
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
68
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69
+
70
+
71
+ gdal/frmts/hdf4/hdf-eos/*
72
+ ------------------------
73
+
74
+ Copyright (C) 1996 Hughes and Applied Research Corporation
75
+
76
+ Permission to use, modify, and distribute this software and its documentation
77
+ for any purpose without fee is hereby granted, provided that the above
78
+ copyright notice appear in all copies and that both that copyright notice and
79
+ this permission notice appear in supporting documentation.
80
+
81
+
82
+ gdal/frmts/pcraster/libcsf
83
+ --------------------------
84
+
85
+ Copyright (c) 1997-2003, Utrecht University
86
+ All rights reserved.
87
+
88
+ Redistribution and use in source and binary forms, with or without
89
+ modification, are permitted provided that the following conditions
90
+ are met:
91
+
92
+ * Redistributions of source code must retain the above copyright
93
+ notice, this list of conditions and the following disclaimer.
94
+
95
+ * Redistributions in binary form must reproduce the above
96
+ copyright notice, this list of conditions and the following
97
+ disclaimer in the documentation and/or other materials provided
98
+ with the distribution.
99
+
100
+ * Neither the name of Utrecht University nor the names of its contributors
101
+ may be used to endorse or promote products derived from this software
102
+ without specific prior written permission.
103
+
104
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
105
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
106
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
107
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
108
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
109
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
110
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
111
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
112
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
113
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
114
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115
+
116
+ gdal/frmts/grib/degrib/*
117
+ ------------------------
118
+
119
+ The degrib and g2clib source code are modified versions of code produced
120
+ by NOAA NWS and are in the public domain subject to the following
121
+ restrictions:
122
+
123
+ http://www.weather.gov/im/softa.htm
124
+
125
+ DISCLAIMER The United States Government makes no warranty, expressed or
126
+ implied, as to the usefulness of the software and documentation for any
127
+ purpose. The U.S. Government, its instrumentalities, officers, employees,
128
+ and agents assumes no responsibility (1) for the use of the software and
129
+ documentation listed below, or (2) to provide technical support to users.
130
+
131
+ http://www.weather.gov/disclaimer.php
132
+
133
+ The information on government servers are in the public domain, unless
134
+ specifically annotated otherwise, and may be used freely by the public so
135
+ long as you do not 1) claim it is your own (e.g. by claiming copyright for
136
+ NWS information -- see below), 2) use it in a manner that implies an
137
+ endorsement or affiliation with NOAA/NWS, or 3) modify it in content and
138
+ then present it as official government material. You also cannot present
139
+ information of your own in a way that makes it appear to be official
140
+ government information..
141
+
142
+ The user assumes the entire risk related to its use of this data. NWS is
143
+ providing this data "as is," and NWS disclaims any and all warranties,
144
+ whether express or implied, including (without limitation) any implied
145
+ warranties of merchantability or fitness for a particular purpose. In no
146
+ event will NWS be liable to you or to any third party for any direct,
147
+ indirect, incidental, consequential, special or exemplary damages or lost
148
+ profit resulting from any use or misuse of this data.
149
+
150
+ As required by 17 U.S.C. 403, third parties producing copyrighted works
151
+ consisting predominantly of the material appearing in NWS Web pages must
152
+ provide notice with such work(s) identifying the NWS material incorporated
153
+ and stating that such material is not subject to copyright protection.
154
+
155
+ port/cpl_minizip*
156
+ -----------------
157
+
158
+ This is version 2005-Feb-10 of the Info-ZIP copyright and license.
159
+ The definitive version of this document should be available at
160
+ ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely.
161
+
162
+
163
+ Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
164
+
165
+ For the purposes of this copyright and license, "Info-ZIP" is defined as
166
+ the following set of individuals:
167
+
168
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois,
169
+ Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth,
170
+ Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz,
171
+ David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko,
172
+ Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs,
173
+ Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda,
174
+ Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren,
175
+ Rich Wales, Mike White
176
+
177
+ This software is provided "as is," without warranty of any kind, express
178
+ or implied. In no event shall Info-ZIP or its contributors be held liable
179
+ for any direct, indirect, incidental, special or consequential damages
180
+ arising out of the use of or inability to use this software.
181
+
182
+ Permission is granted to anyone to use this software for any purpose,
183
+ including commercial applications, and to alter it and redistribute it
184
+ freely, subject to the following restrictions:
185
+
186
+ 1. Redistributions of source code must retain the above copyright notice,
187
+ definition, disclaimer, and this list of conditions.
188
+
189
+ 2. Redistributions in binary form (compiled executables) must reproduce
190
+ the above copyright notice, definition, disclaimer, and this list of
191
+ conditions in documentation and/or other materials provided with the
192
+ distribution. The sole exception to this condition is redistribution
193
+ of a standard UnZipSFX binary (including SFXWiz) as part of a
194
+ self-extracting archive; that is permitted without inclusion of this
195
+ license, as long as the normal SFX banner has not been removed from
196
+ the binary or disabled.
197
+
198
+ 3. Altered versions--including, but not limited to, ports to new operating
199
+ systems, existing ports with new graphical interfaces, and dynamic,
200
+ shared, or static library versions--must be plainly marked as such
201
+ and must not be misrepresented as being the original source. Such
202
+ altered versions also must not be misrepresented as being Info-ZIP
203
+ releases--including, but not limited to, labeling of the altered
204
+ versions with the names "Info-ZIP" (or any variation thereof, including,
205
+ but not limited to, different capitalizations), "Pocket UnZip," "WiZ"
206
+ or "MacZip" without the explicit permission of Info-ZIP. Such altered
207
+ versions are further prohibited from misrepresentative use of the
208
+ Zip-Bugs or Info-ZIP e-mail addresses or of the Info-ZIP URL(s).
209
+
210
+ 4. Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
211
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
212
+ own source and binary releases.
213
+
214
+
215
+ gdal/ogr/ogrsf_frmts/dxf/intronurbs.cpp
216
+ ---------------------------------------
217
+
218
+ This code is derived from the code associated with the book "An Introduction
219
+ to NURBS" by David F. Rogers. More information on the book and the code is
220
+ available at:
221
+
222
+ http://www.nar-associates.com/nurbs/
223
+
224
+
225
+ Copyright (c) 2009, David F. Rogers
226
+ All rights reserved.
227
+
228
+ Redistribution and use in source and binary forms, with or without
229
+ modification, are permitted provided that the following conditions are met:
230
+
231
+ * Redistributions of source code must retain the above copyright notice,
232
+ this list of conditions and the following disclaimer.
233
+ * Redistributions in binary form must reproduce the above copyright notice,
234
+ this list of conditions and the following disclaimer in the documentation
235
+ and/or other materials provided with the distribution.
236
+ * Neither the name of the David F. Rogers nor the names of its contributors
237
+ may be used to endorse or promote products derived from this software
238
+ without specific prior written permission.
239
+
240
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
241
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
242
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
243
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
244
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
245
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
246
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
247
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
248
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
249
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
250
+ POSSIBILITY OF SUCH DAMAGE.
251
+
252
+
253
+
@@ -0,0 +1,30 @@
1
+ require 'mkmf'
2
+
3
+ # see https://github.com/zhm/gdal-ruby/issues/5
4
+ require_relative '../ruby-2.2-patch'
5
+
6
+ raise 'gdal-config not found.' if `which gdal-config`.empty?
7
+
8
+ dir_config 'gdal',
9
+ `gdal-config --cflags`.split(' ')[0].gsub(/-I/, ''),
10
+ `gdal-config --libs`.split(' ')[0].gsub(/-L/, '')
11
+
12
+ have_library 'gdal' or raise 'libgdal not found'
13
+
14
+ pkg_config 'gdal'
15
+
16
+ $libs = append_library $libs, 'gdal'
17
+
18
+ # earlier versions of ruby do not define $CXXFLAGS
19
+ $CXXFLAGS = CONFIG["CXXFLAGS"] unless defined?($CXXFLAGS)
20
+
21
+ $CFLAGS << ' -Wno-format-security'
22
+ $CXXFLAGS << ' -Wno-format-security'
23
+
24
+ if !(`gdal-config --version`.strip =~ /^1/)
25
+ $CFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
26
+ $CXXFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
27
+ end
28
+
29
+ create_makefile 'gdal-ruby/gdal'
30
+