ffi-gdal 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changelog.md +6 -0
- data/bin/rake +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/lib/ffi/gdal/version.rb +1 -1
- data/lib/ogr/extensions/geometry/extensions.rb +0 -8
- data/lib/ogr/geometry.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5687af49ac85e98515af311f02534829272c66d86c1d6b94446a8cb5e29870f7
|
|
4
|
+
data.tar.gz: e92e6bb4adc98c2d2dbbaba15d33e2ba15cf186efc0204b9645918f251cbb9be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1d0340ac0e2e58bc9972a95980b337f3f47c8f148fbb9e9a40b5bdb7b64de91b77afda82760c737a0894a8f09f88612148efbf5e6430720c4535163472f39ed
|
|
7
|
+
data.tar.gz: '02245493a040172999137d0876710500c5453ead4e208bd8157525890410e320f782ef7fa13d000c9c74bd3e41d67f5aef6bbd1a93d3484df932a690797f9906'
|
data/Changelog.md
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [1.0.4] - 2023-02-06
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Move `OGR::GeometryMixins::Extensions#is_3d?` to `OGR::Geometry`.
|
|
14
|
+
|
|
9
15
|
## [1.0.3] - 2023-01-27
|
|
10
16
|
|
|
11
17
|
### Fixed
|
data/bin/rake
CHANGED
|
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
|
15
15
|
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
16
|
|
|
17
17
|
if File.file?(bundle_binstub)
|
|
18
|
-
if
|
|
18
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
19
19
|
load(bundle_binstub)
|
|
20
20
|
else
|
|
21
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rspec
CHANGED
|
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
|
15
15
|
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
16
|
|
|
17
17
|
if File.file?(bundle_binstub)
|
|
18
|
-
if
|
|
18
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
19
19
|
load(bundle_binstub)
|
|
20
20
|
else
|
|
21
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/bin/rubocop
CHANGED
|
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
|
15
15
|
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
16
|
|
|
17
17
|
if File.file?(bundle_binstub)
|
|
18
|
-
if
|
|
18
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
19
19
|
load(bundle_binstub)
|
|
20
20
|
else
|
|
21
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/lib/ffi/gdal/version.rb
CHANGED
data/lib/ogr/geometry.rb
CHANGED
|
@@ -263,6 +263,14 @@ module OGR
|
|
|
263
263
|
point
|
|
264
264
|
end
|
|
265
265
|
|
|
266
|
+
def is_2d?
|
|
267
|
+
coordinate_dimension == 2
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
def is_3d?
|
|
271
|
+
coordinate_dimension == 3
|
|
272
|
+
end
|
|
273
|
+
|
|
266
274
|
# Dump as WKT to the given +file_path+; dumps to STDOUT if none is given.
|
|
267
275
|
#
|
|
268
276
|
# @param file_path [String] The text file to write to.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ffi-gdal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Loveless
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bindata
|