[Groonga-commit] groonga/groonga [master] doc: add more concre execution examples

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Nov 14 19:07:06 JST 2012


HAYASHI Kentaro	2012-11-14 19:07:06 +0900 (Wed, 14 Nov 2012)

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

  Log:
    doc: add more concre execution examples

  Added files:
    doc/source/example/reference/functions/geo_distance_distance_rectangle_across.log

  Added: doc/source/example/reference/functions/geo_distance_distance_rectangle_across.log (+77 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/geo_distance_distance_rectangle_across.log    2012-11-14 19:07:06 +0900 (fd2ee78)
@@ -0,0 +1,77 @@
+Execution example::
+
+  # Calculate the value of distance from Sydney,Australia to New York,The United States (across the date line).
+  select Geo --output_columns distance --scorer 'distance = geo_distance("-121926000x544351000", "146566000x-266422000", "rectangle")'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "distance", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         26281151
+  #       ]
+  #     ]
+  #   ]
+  # ]
+  # Calculate the value of distance from Paris,Flance to Madrid,Spain (across meridian).
+  select Geo --output_columns distance --scorer 'distance = geo_distance("175904000x8464000", "145508000x-13291000", "rectangle")'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "distance", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         1051293
+  #       ]
+  #     ]
+  #   ]
+  # ]
+  # Calculate the value of distance from New York,The United Status to Brasillia,Brasil (across equator).
+  select Geo --output_columns distance --scorer 'distance = geo_distance("146566000x-266422000", "-56880000x-172310000", "rectangle")'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "distance", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         6880439
+  #       ]
+  #     ]
+  #   ]
+  # ]
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index