PostGIS 和坐标,确定一个点是否在多边形内

PostGIS and coordinates, determinate if a point is inside a multipolygon

我有坐标:-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';

我的Table:

doc 说:

boolean ST_Contains(geometry geomA, geometry geomB);
Geometry A contains Geometry B if [...]

所以你必须先使用多边形,然后是点。

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';