您可以将 ST_DUMP 和 ST_INTERSECTS 函数组合用于数组几何(MULTIGEOMETRY TYPE)
St_astext(parcel.geom);
MULTIPOLYGON(((398140.945672642 4542263.06495453,398140.410405475 4542262.72839343,398140.513367039 4542263.18287079,398140.945672642 4542263.06495453)),
((398147.309882976 4542261.32904395,398146.58758329 4542258.33481488,398144.165643562 4542262.18667092,398147.309882976 4542261.32904395)),
((398141.915568335 4542238.96883738,398135.522133265 4542241.15138888,398138.811826236 4542255.67218681,398140.343422935 4542253.23633343,398146.254207604 4542256.95287011,398141.915568335 4542238.96883738)))
这是我数据库中的一个示例 - 已签入;
select a.objectid,b.fid ,st_intersects (a.poly,b.geom)
from region a,
(
select objectid::text||((st_dump(poly)).path[1]::text) as fid, (st_dump(poly)).geom as geom
from parcel where geometrytype(poly)='MULTIPOLYGON' )
as b
https://postgis.net/docs/ST_Dump.html
https://postgis.net/docs/ST_Intersects.html