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

Back to archive index

HAYASHI Kentaro null+****@clear*****
Mon Nov 5 11:58:19 JST 2012


HAYASHI Kentaro	2012-11-05 11:58:19 +0900 (Mon, 05 Nov 2012)

  New Revision: 0bae8633bb9dab61ddf379c20b7a1b3fc0a1cef9
  https://github.com/groonga/groonga/commit/0bae8633bb9dab61ddf379c20b7a1b3fc0a1cef9

  Log:
    test: support to generate calculated distance from 2nd quadrant to 4th 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 10:17:31 +0900 (724dc7b)
+++ test/command/tools/geo/generate-grntest-data.rb    2012-11-05 11:58:19 +0900 (a0375fe)
@@ -597,7 +597,7 @@ class GrnTestData
                                                 @latitude_end.to_i)
           end
           (north_distance + south_distance).floor
-        when "1st_to_3rd", "3rd_to_1st"
+        when "1st_to_3rd", "3rd_to_1st", "2nd_to_4th"
           longitude_delta = @longitude_end_degree - @longitude_start_degree
           latitude_delta = @latitude_end_degree - @latitude_start_degree
           slope = latitude_delta / longitude_delta.to_f
@@ -723,7 +723,7 @@ class GrnTestData
                                                180 * GRN_GEO_RESOLUTION,
                                                latitude_on_180 * GRN_GEO_RESOLUTION)
             (east_distance + west_distance).floor
-          when "1st_to_3rd", "3rd_to_1st"
+          when "1st_to_3rd", "3rd_to_1st", "2nd_to_4th"
             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
Back to archive index