我正在使用 PostgreSQL。我希望从地理编码的特定点返回带有圆圈的点。现在我有一个地理编码和圆半径。根据这些数据,我可以计算出圆圈内的点吗?实际上我已经用 PostGIS 试过了,它工作正常,但 PostGIS 只处理空间数据,我有非空间数据。在 PostGIS 我使用了以下查询:
select addressid,ST_AsText(geocode)geocode from aspatial_address as A where ST_Point_Inside_Circle(a.geocode,14.083333,19.583333,7)
我的表结构是:
create table maddress
{
addressid bigint(30) primary key;
addressline varchar2(40) not null;
geocode varchar2(20) not null;
}
我希望返回距离地理编码 7 公里的圆中存在的点(14.083333,19.583333)。
现在,提示我..我如何在 PostgreSQL 中做到这一点?这里可以吗?它们在 PostgreSQL 中是否使用了任何几何函数?请告诉我..