File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 149
149
</example>
150
150
</sect2>
151
151
152
- <sect2 id="func.spoint.dist ">
152
+ <sect2 id="func.spoint_dwithin ">
153
153
<title>
154
- Point distance function
154
+ Point-within- distance function
155
155
</title>
156
156
<para>
157
157
The function
166
166
</funcsynopsis>
167
167
<para>
168
168
returns if points <parameter>p1</parameter> and <parameter>p2</parameter>
169
- lie within distance <parameter>radius</parameter> of each other.
170
- On PostgreSQL 12 and later, the function has <literal>GIST</literal>
169
+ lie within distance <parameter>radius</parameter> of each other, i.e.
170
+ it computes the boolean expression <literal>p1 <-> p2 <= radius</literal>.
171
+ On PostgreSQL 12 and later, the function has <literal>GiST</literal>
171
172
support and the PostgreSQL optimizer will transform it to either
172
173
<literal>p1 <@ scircle(p2, radius)</literal> or
173
174
<literal>p2 <@ scircle(p1, radius)</literal> where appropriate.
You can’t perform that action at this time.
0 commit comments