将pcpatch对象和给定的几何对象进行相交处理,返回相交处理后的子pcpatch对象。
语法
pcpatch ST_intersection(pcpatch pc, geometry geom);
参数
参数名称 | 描述 |
pc | pcpatch对象。 |
geom | Ganos Geometry的geometry对象。 |
示例
SELECT ST_AsText(ST_Explode(ST_Intersection(
pa,
'SRID=4326;POLYGON((-126.451 45.552, -126.42 47.55, -126.40 45.552, -126.451 45.552))'::geometry
)))
FROM patches WHERE id = 7;
st_astext
--------------------------------------
{"pcid":1,"pt":[-126.44,45.56,56,5]}
{"pcid":1,"pt":[-126.43,45.57,57,5]}
{"pcid":1,"pt":[-126.42,45.58,58,5]}
{"pcid":1,"pt":[-126.41,45.59,59,5]}
文档内容是否对您有帮助?