ffi-gdal 1.0.0.beta15 → 1.0.0.beta16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +6 -0
- data/lib/ffi/gdal/version.rb +1 -1
- data/lib/gdal/raster_band_classifier.rb +1 -1
- data/spec/unit/gdal/raster_band_classifier_spec.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 001e1f9a99984fee7d2578b7afdb7c04508d113895d2892b457685a03290efed
|
4
|
+
data.tar.gz: 896c51e4d85abdce2f743de84b0fcd199f7ac48339fefb99dea0220812073296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e5d07dfc1ced24a5a6491d57cc32ab177de432f54477be7cda2d051633c124f07a83bec92f17551d2ca88ce113bf6589a187b3cf2dad0db70eb761a23643063
|
7
|
+
data.tar.gz: d3e425012f6ad7d119e8a3d307ece8f5b168c850037974264e01c50939105677d161ea1b430ad923ae1e85955f7d2d461ea46e0635b658535aaf3b84cf6374e5
|
data/History.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
Format for this file derived from [http://keepachangelog.com](http://keepachangelog.com).
|
4
4
|
|
5
|
+
## 1.0.0.beta16 / 2022-06-09
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* [DEV-34269] Ensure `GDAL::RasterBandClassifier#equal_count_ranges` returns a range when only one is requested.
|
10
|
+
|
5
11
|
## 1.0.0.beta15 / 2022-05-12
|
6
12
|
|
7
13
|
### Improvements
|
data/lib/ffi/gdal/version.rb
CHANGED
@@ -71,7 +71,7 @@ module GDAL
|
|
71
71
|
ensure_min_gap(break_values)
|
72
72
|
log "Break values: #{break_values}"
|
73
73
|
|
74
|
-
return if break_values.uniq.size - 1 != range_count
|
74
|
+
return if range_count != 1 && break_values.uniq.size - 1 != range_count
|
75
75
|
|
76
76
|
breakpoint_calculator = lambda do |range_number|
|
77
77
|
min = break_values[range_number]
|
@@ -97,6 +97,15 @@ RSpec.describe GDAL::RasterBandClassifier do
|
|
97
97
|
it { is_expected.to be_nil }
|
98
98
|
end
|
99
99
|
|
100
|
+
context 'all same value' do
|
101
|
+
let(:band_narray) { Numo::Int8.new(3, 5).fill(1) }
|
102
|
+
before { allow(raster_band).to receive(:to_nna).and_return(band_narray) }
|
103
|
+
|
104
|
+
it 'returns a single range when 1 is requested' do
|
105
|
+
expect(subject.equal_count_ranges(1)).to eq [{ range: 1..1, map_to: 1 }]
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
100
109
|
context 'all nodata pixels' do
|
101
110
|
let(:band_narray) { Numo::Int8.new(3, 5).fill(0) }
|
102
111
|
before { allow(raster_band).to receive(:to_nna).and_return(band_narray) }
|
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.0.
|
4
|
+
version: 1.0.0.beta16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Loveless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -543,7 +543,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
543
543
|
- !ruby/object:Gem::Version
|
544
544
|
version: 1.3.1
|
545
545
|
requirements: []
|
546
|
-
rubygems_version: 3.
|
546
|
+
rubygems_version: 3.3.7
|
547
547
|
signing_key:
|
548
548
|
specification_version: 4
|
549
549
|
summary: FFI wrapper for GDAL/OGR.
|