PostGIS和坐标,确定一个点是否在多极子内部



我有坐标:-48.54367281530538-15.91180231568948

我需要知道这些坐标是否属于我的多重多边形

select boolean st_contains(st_geomfromtext('POINT(-48.54367281530538 -15.91180231568948)',4326), st_geomfromkml(a.geom)) 
from "LIM_Municipio_A" as a
where nome  ilike 'alexânia';

我的桌子:

医生说:

布尔ST_Contains(几何geomA,几何geomB(
如果[…],几何体A包含几何体B

因此,必须先使用多边形,然后使用点。

select st_contains(
st_geomfromkml(a.geom),
st_geomfromtext('POINT(-48.54367281530538 -15.91180231568948)',4326)
) 
from "LIM_Municipio_A" as a
where nome  ilike 'alexânia';

相关内容

最新更新