Sha256: 9f5b502dfb93a5fbfec1d11241c5fe2e59bb956a3a261ded75b84bebbc34e79a

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

Execution example::

  table_create --name GeoIndex --flags TABLE_PAT_KEY --key_type WGS84GeoPoint
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  column_create --table GeoIndex --name index_point --type Site --flags COLUMN_INDEX --source location
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  load --table Site
  [
   {"_key":"http://example.org/","location":"128452975x503157902"},
   {"_key":"http://example.net/","location":"128487316x502920929"}
  ]
  # [[0, 1337566253.89858, 0.000355720520019531], 2]
  select --table Site --filter 'geo_in_circle(location, "128515259x503187188", 5000)' --output_columns _key,location
  # [
  #   [
  #     0, 
  #     1337566253.89858, 
  #     0.000355720520019531
  #   ], 
  #   [
  #     [
  #       [
  #         1
  #       ], 
  #       [
  #         [
  #           "_key", 
  #           "ShortText"
  #         ], 
  #         [
  #           "location", 
  #           "WGS84GeoPoint"
  #         ]
  #       ], 
  #       [
  #         "http://example.org/", 
  #         "128452975x503157902"
  #       ]
  #     ]
  #   ]
  # ]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rroonga-2.1.2-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/index-6.log
rroonga-2.1.1-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/index-6.log
rroonga-2.1.0-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/index-6.log
rroonga-2.0.8-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/index-6.log
rroonga-2.0.7-x86-mingw32 vendor/local/share/doc/groonga/source/example/tutorial/index-6.log