<refentry id="ST_Point_Inside_Circle">
<refnamediv>
- <refname>ST_Point_Inside_Circle</refname>
+ <refname>ST_PointInsideCircle</refname>
<refpurpose>Is the point geometry insert circle defined by center_x, center_y, radius</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>boolean <function>ST_Point_Inside_Circle</function></funcdef>
+ <funcdef>boolean <function>ST_PointInsideCircle</function></funcdef>
<paramdef><type>geometry </type> <parameter>a_point</parameter></paramdef>
<paramdef><type>float </type> <parameter>center_x</parameter></paramdef>
<paramdef><type>float </type> <parameter>center_y</parameter></paramdef>
<title>Description</title>
<para>The syntax for this functions is
- point_inside_circle(<geometry>,<circle_center_x>,<circle_center_y>,<radius>).
+ ST_PointInsideCircle(<geometry>,<circle_center_x>,<circle_center_y>,<radius>).
Returns the true if the geometry is a point and is inside the
circle. Returns false otherwise.</para>
<note><para>This only works for points as the name suggests</para></note>
+
+ <para>Availability: 1.2</para>
+ <para>Changed: 2.2.0 In prior versions this used to be called ST_Point_Inside_Circle</para>
</refsection>
<refsection>
<title>Examples</title>
- <programlisting>SELECT ST_Point_Inside_Circle(ST_Point(1,2), 0.5, 2, 3);
- st_point_inside_circle
+ <programlisting>SELECT ST_PointInsideCircle(ST_Point(1,2), 0.5, 2, 3);
+ st_pointinsidecircle
------------------------
t
</programlisting>
LANGUAGE 'c' IMMUTABLE STRICT
COST 100;
--- Availability: 1.2.2
-CREATE OR REPLACE FUNCTION ST_point_inside_circle(geometry,float8,float8,float8)
+-- Availability: 2.2.0
+CREATE OR REPLACE FUNCTION ST_PointInsideCircle(geometry,float8,float8,float8)
RETURNS bool
AS 'MODULE_PATHNAME', 'LWGEOM_inside_circle_point'
LANGUAGE 'c' IMMUTABLE STRICT;
+-- Availability: 1.2.2
+-- Deprecation in 2.2.0
+CREATE OR REPLACE FUNCTION ST_point_inside_circle(geometry,float8,float8,float8)
+ RETURNS bool AS
+ $$ SELECT _postgis_deprecate('ST_Point_Inside_Circle', 'ST_PointInsideCircle', '2.2.0');
+ SELECT ST_PointInsideCircle($1,$2,$3,$4);
+ $$
+ LANGUAGE 'sql' IMMUTABLE STRICT;
+
-- Availability: 1.2.2
CREATE OR REPLACE FUNCTION ST_azimuth(geom1 geometry, geom2 geometry)
RETURNS float8