[Groonga-commit] groonga/groonga [master] test: support to generate calculated distance from 4th quadrant to 2nd one

Zurück zum Archiv-Index

HAYASHI Kentaro null+****@clear*****
Tue Nov 6 09:53:37 JST 2012


HAYASHI Kentaro	2012-11-06 09:53:37 +0900 (Tue, 06 Nov 2012)

  New Revision: f82c2c358d06e84c1f5bdaa29f9d5c72a0c03726
  https://github.com/groonga/groonga/commit/f82c2c358d06e84c1f5bdaa29f9d5c72a0c03726

  Log:
    test: support to generate calculated distance from 4th quadrant to 2nd one

  Modified files:
    test/command/tools/geo/generate-grntest-data.rb

  Modified: test/command/tools/geo/generate-grntest-data.rb (+2 -2)
===================================================================
--- test/command/tools/geo/generate-grntest-data.rb    2012-11-05 22:26:28 +0900 (755ff04)
+++ test/command/tools/geo/generate-grntest-data.rb    2012-11-06 09:53:37 +0900 (3bf38e2)
@@ -597,7 +597,7 @@ class GrnTestData
                                                 @latitude_end.to_i)
           end
           (north_distance + south_distance).floor
-        when "1st_to_3rd", "3rd_to_1st", "2nd_to_4th"
+        when "1st_to_3rd", "3rd_to_1st", "2nd_to_4th", "4th_to_2nd"
           longitude_delta = @longitude_end_degree - @longitude_start_degree
           latitude_delta = @latitude_end_degree - @latitude_start_degree
           slope = latitude_delta / longitude_delta.to_f
@@ -790,7 +790,7 @@ class GrnTestData
                                                   third_latitude)
               (first_distance + third_distance).floor
             end
-          when "2nd_to_4th"
+          when "2nd_to_4th", "4th_to_2nd"
             if @longitude_start_degree > @longitude_end_degree
               rounded_longitude_degree = @longitude_end_degree + 360
               rounded_latitude_degree = @latitude_end_degree
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index