名前

ST_Point_Inside_Circle — ポイントジオメトリがcenter_x, center_y , radiusで定義される円内にあるかどうか

概要

boolean ST_Point_Inside_Circle(geometry a_point, float center_x, float center_y, float radius);

説明

この関数の書式はpoint_inside_circle(<geometry>,<circle_center_x>,<circle_center_y>,<radius>)です.ジオメトリがポイントで円内にあるならTRUEを返します.他の場合はFALSEを返します.

[注意]
この関数は名前が示すようにポイントでのみ動作します.

SELECT ST_Point_Inside_Circle(ST_Point(1,2), 0.5, 2, 3);
 st_point_inside_circle
------------------------
 t

関連情報

ST_DWithin