名稱

ST_PointInsideCircle — 測試點幾何是否在由中心和半徑定義的圓內

概要

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

描述

如果幾何圖形是點並且在中心為 center_x, center_y,半徑為 radius 的圓內,則返回 true。

[Warning]

不使用空間索引。請改用 ST_DWithin

可用性:1.2

變更:2.2.0 在之前的版本中,此函數名為 ST_Point_Inside_Circle

範例

SELECT ST_PointInsideCircle(ST_Point(1,2), 0.5, 2, 3);
 st_pointinsidecircle
------------------------
 t

參見

ST_DWithin