geospatial 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geospatial/location.rb +1 -1
- data/lib/geospatial/version.rb +1 -1
- data/spec/geospatial/filter_spec.rb +2 -2
- data/spec/geospatial/location_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c33ebcfa6ce57ecf40849207cad45923cd05798c
|
4
|
+
data.tar.gz: 4544dd721796c69545d912d366c1d2decb4ed86a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e66b9c99f255792077ef4fd7721c34ade15e059d1f5af0a06db9406fba8e794d447d0703a7eae8e8b81aa9b0e60a6feff914e6abaea71dd129f305111d729c6a
|
7
|
+
data.tar.gz: c668a129d0e1131d622015e759ac7e03703869d8b6aa8a0c920e9e7b9ca1e5262b3d2533c91d88868d71978c5a03a9ea4e1363daef9c289506eaf693f8a6be53
|
data/lib/geospatial/location.rb
CHANGED
data/lib/geospatial/version.rb
CHANGED
@@ -36,7 +36,7 @@ RSpec.describe Geospatial::Map.for_earth(30) do
|
|
36
36
|
map = Geospatial::Map.for_earth(30)
|
37
37
|
filter = map.filter_for(kaikoura_polygon, depth: 12)
|
38
38
|
|
39
|
-
puts "filter.ranges.count: #{filter.ranges.count}"
|
39
|
+
#puts "filter.ranges.count: #{filter.ranges.count}"
|
40
40
|
|
41
41
|
#ranges.each_with_index do |(min, max), index|
|
42
42
|
# puts "#{min} -> #{max} :: #{filter.ranges[index].min} -> #{filter.ranges[index].max}"
|
@@ -45,7 +45,7 @@ RSpec.describe Geospatial::Map.for_earth(30) do
|
|
45
45
|
location = Geospatial::Location[176.204319, -37.660294]
|
46
46
|
point = map.point_for_object(location)
|
47
47
|
|
48
|
-
puts map.hash_for_coordinates(location.to_a)
|
48
|
+
#puts map.hash_for_coordinates(location.to_a)
|
49
49
|
# 888186547785722805
|
50
50
|
# 888900599658148001
|
51
51
|
|
@@ -28,5 +28,9 @@ module Geospatial::LocationSpec
|
|
28
28
|
it "compute the correct distance between two points" do
|
29
29
|
expect(lake_alex.distance_from(lake_tekapo)).to be_within(100).of(8_500)
|
30
30
|
end
|
31
|
+
|
32
|
+
it "should format nicely" do
|
33
|
+
expect("#{lake_alex}").to be == "Geospatial::Location[170.45, -43.94]"
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|