ffi-gdal-extensions 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/History.md +4 -0
- data/lib/ffi/gdal/extensions/version.rb +1 -1
- data/lib/ffi/lwgeom.rb +5 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 171f10e37ff9c4ac847636ba293bf9229fa97706
|
4
|
+
data.tar.gz: c610a61bad37fc148e67db2879d786e4607614b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae66db79d79eea54050861281a8810bf00c0b8c0a325a45d5cf315098af5e51329dec0bab9445270b99a93b808f310f5d37325ca2b507e2f4fee7f81c4b34479
|
7
|
+
data.tar.gz: 4ea0cf747a65774679eabd6f4a7fba936a13d52328c1c2f1c46643322ab7513695206cbd00054486e3d817ae212ea810de1e6300ba6e7287d47935a1be093c1d
|
data/.gitignore
CHANGED
data/History.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Format for this file derived from [http://keepachangelog.com](http://keepachangelog.com).
|
4
4
|
|
5
|
+
## 0.1.1 / 2016-12-29
|
6
|
+
|
7
|
+
* Fix broken loading when `LWGEOM_LIBRARY_PATH` is specified
|
8
|
+
|
5
9
|
## 0.1.0 / 2016-05-27
|
6
10
|
|
7
11
|
* Add `OGR::GeometryExtensions::LWGeomWrappers` with `#make_valid`.
|
data/lib/ffi/lwgeom.rb
CHANGED
@@ -11,7 +11,7 @@ module FFI
|
|
11
11
|
lib_file_name = "#{lib}.#{FFI::Platform::LIBSUFFIX}*"
|
12
12
|
|
13
13
|
if ENV['LWGEOM_LIBRARY_PATH']
|
14
|
-
return File.join(ENV['LWGEOM_LIBRARY_PATH'], lib_file_name)
|
14
|
+
return Dir.glob(File.join(ENV['LWGEOM_LIBRARY_PATH'], lib_file_name))
|
15
15
|
end
|
16
16
|
|
17
17
|
FFI::GDAL.search_paths.flat_map do |search_path|
|
@@ -21,7 +21,8 @@ module FFI
|
|
21
21
|
end.uniq.first
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
LIB_PATH = find_lib('liblwgeom').freeze
|
25
|
+
ffi_lib [::FFI::CURRENT_PROCESS, LIB_PATH] if LIB_PATH
|
25
26
|
|
26
27
|
VARIANT_WKB_ISO = 0x01
|
27
28
|
VARIANT_WKB_SFSQL = 0x02
|
@@ -34,8 +35,8 @@ module FFI
|
|
34
35
|
VARIANT_WKT_SFSQL = 0x02
|
35
36
|
VARIANT_WKT_EXTENDED = 0x04
|
36
37
|
|
37
|
-
attach_function :lwgeom_from_wkt, [
|
38
|
-
attach_function :lwgeom_from_wkb, [
|
38
|
+
attach_function :lwgeom_from_wkt, %i[string bool], Geom.ptr
|
39
|
+
attach_function :lwgeom_from_wkb, %i[pointer size_t bool], Geom.ptr
|
39
40
|
attach_function :lwgeom_to_wkt, [Geom.ptr, :uint8, :int, :pointer], :string
|
40
41
|
attach_function :lwgeom_to_wkb, [Geom.ptr, :uint8, :pointer], :pointer
|
41
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-gdal-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Loveless
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -157,9 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.5.
|
160
|
+
rubygems_version: 2.5.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Additional functionality to the ffi-gdal gem
|
164
164
|
test_files: []
|
165
|
-
has_rdoc:
|