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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27ce3bb913f0b8635ea76cbf5c4630815f1ac669b96d8d4b9106d51e724b88e7
4
- data.tar.gz: 82959d4f4e6c2ebe35aaed9d37ec87c4520b17a96afd4a4ce7fa0ca72542915e
3
+ metadata.gz: 001e1f9a99984fee7d2578b7afdb7c04508d113895d2892b457685a03290efed
4
+ data.tar.gz: 896c51e4d85abdce2f743de84b0fcd199f7ac48339fefb99dea0220812073296
5
5
  SHA512:
6
- metadata.gz: 305f98803b8e7568a43ac5e5a108283b5a3c16d9c87c440207a48227f1d3c833961ecc278994ab70830f976ac3d3f94d80e79059e9c3335964010ada30a02603
7
- data.tar.gz: eb5b7863342eb29246bf892387ad591364fe98b3bc654dc63854d995a75d22ad4143dddebcacdb880ee6c22d8d0bcb1d8db2f6a230a9f4266b013ab4db8d2581
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module FFI
4
4
  module GDAL
5
- VERSION = '1.0.0.beta15'
5
+ VERSION = '1.0.0.beta16'
6
6
  end
7
7
  end
@@ -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.beta15
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-05-12 00:00:00.000000000 Z
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.0.9
546
+ rubygems_version: 3.3.7
547
547
  signing_key:
548
548
  specification_version: 4
549
549
  summary: FFI wrapper for GDAL/OGR.