Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 03663abacfb5829946c324cb3e985338 > files > 191

groonga-doc-1.2.7-1.fc14.x86_64.rpm




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>7.6.3. geo_in_circle &mdash; groonga v1.2.6 documentation</title>
    
    <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.2.6',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="top" title="groonga v1.2.6 documentation" href="../index.html" />
    <link rel="up" title="7.6. 組み込み関数一覧" href="../functions.html" />
    <link rel="next" title="7.6.4. geo_in_rectangle" href="geo_in_rectangle.html" />
    <link rel="prev" title="7.6.2. geo_distance" href="geo_distance.html" /> 
  </head>
  <body>
<div class="header">
  <h1 class="title">
    <a id="top-link" href="../index.html">
      <span class="project">groonga</span>
      <span class="separator">-</span>
      <span class="description">An open-source fulltext search engine and column store.</span>
    </a>
  </h1>

  <div class="other-language-links">
    <ul>
      <li><a href="../../../ja/html/functions/geo_in_circle.html"><img src="../_static/jp.png" alt="日本語"></a></li>
    </ul>
  </div>
</div>
  

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="geo_in_rectangle.html" title="7.6.4. geo_in_rectangle"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="geo_distance.html" title="7.6.2. geo_distance"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">groonga v1.2.6 documentation</a> &raquo;</li>
          <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../functions.html" accesskey="U">7.6. 組み込み関数一覧</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="geo-in-circle">
<h1>7.6.3. geo_in_circle<a class="headerlink" href="#geo-in-circle" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>7.6.3.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<p>geo_in_circle - 座標が円の範囲内に存在するかどうかを調べます。</p>
</div>
<div class="section" id="id2">
<h2>7.6.3.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<div class="highlight-none"><div class="highlight"><pre>geo_in_circle(point, center, radious_or_point)
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h2>7.6.3.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
<p>groonga組込関数の一つであるgeo_in_circleについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
<p>geo_in_circle() 関数は、pointに指定した座標が、centerに指定した座標を中心とする円の範囲内にあるかどうかを調べます。</p>
</div>
<div class="section" id="id4">
<h2>7.6.3.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<p><tt class="docutils literal"><span class="pre">point</span></tt></p>
<blockquote>
<div>円の範囲内に存在するかどうかを調べる座標を指定します。Point型の値を指定できます。 <a class="footnote-reference" href="#id8" id="id5">[1]</a></div></blockquote>
<p><tt class="docutils literal"><span class="pre">center</span></tt></p>
<blockquote>
<div>円の中心となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。</div></blockquote>
<p><tt class="docutils literal"><span class="pre">radious_or_point</span></tt></p>
<blockquote>
<div>円の半径を指定します。数値を指定した場合には、半径(単位:メートル)が指定されたものとみなします。
Point型の値、あるいは座標を示す文字列を指定した場合は、円周上の点の一つの座標が指定されたものとみなします。</div></blockquote>
</div>
<div class="section" id="id6">
<h2>7.6.3.5. 返値<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
<p>pointに指定した座標が円の範囲内にあるかどうかをBool型の値で返します。</p>
</div>
<div class="section" id="id7">
<h2>7.6.3.6. 例<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
<div class="highlight-none"><div class="highlight"><pre>geo_in_circle(pos, &quot;100x100&quot;, 100)
true
</pre></div>
</div>
<p class="rubric">脚注</p>
<table class="docutils footnote" frame="void" id="id8" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id5">[1]</a></td><td>TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。</td></tr>
</tbody>
</table>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">7.6.3. geo_in_circle</a><ul>
<li><a class="reference internal" href="#id1">7.6.3.1. 名前</a></li>
<li><a class="reference internal" href="#id2">7.6.3.2. 書式</a></li>
<li><a class="reference internal" href="#id3">7.6.3.3. 説明</a></li>
<li><a class="reference internal" href="#id4">7.6.3.4. 引数</a></li>
<li><a class="reference internal" href="#id6">7.6.3.5. 返値</a></li>
<li><a class="reference internal" href="#id7">7.6.3.6. 例</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="geo_distance.html"
                        title="previous chapter">7.6.2. geo_distance</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="geo_in_rectangle.html"
                        title="next chapter">7.6.4. geo_in_rectangle</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/functions/geo_in_circle.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="geo_in_rectangle.html" title="7.6.4. geo_in_rectangle"
             >next</a> |</li>
        <li class="right" >
          <a href="geo_distance.html" title="7.6.2. geo_distance"
             >previous</a> |</li>
        <li><a href="../index.html">groonga v1.2.6 documentation</a> &raquo;</li>
          <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../functions.html" >7.6. 組み込み関数一覧</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2011, Brazil, Inc.
    </div>
  </body>
</html>