<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear list,<br>
<br>
I would like to use the ST_Split function to split polygons from one
table with all intersecting lines from another table. Unfortunately,
I get the following error:<br>
<br>
ERROR: Splitting a Polygon by a MultiLineString is unsupported<br>
SQL Status:XX000<br>
<br>
This is my query:<br>
<br>
select betr_id, (cut).path[1], (cut).geom from (select betr_id,
st_dump(st_split) as cut from (select a.betr_id, ST_Split(a.geom,
st_union(b.geom)) from p_sam.nihb_2013_convex_hull_betr a left join
p_sam.ni_dlm13_aaa_gew_sie_ver_l b on st_intersects(a.geom, b.geom)
group by a.betr_id, a.geom) sel1) sel2;<br>
<br>
The Manual contains the following info regarding this problem:<br>
<br>
"The function supports splitting a line by (multi)point, (multi)line
or (multi)polygon boundary, a (multi)polygon by line<b>.</b>"<br>
<br>
This might mean that I would be able to split a line by
multilinestrings, but a polygon only by single linestrings - is that
correct? Does anyone has a suggestion how I could work around this
problem (aside from looping the ST_Split with some function, DO
block or pgScript after selecting all intersecting linestrings per
polygon)?<br>
<br>
Thanks a lot for any helpful suggestions!<br>
<br>
Regards,<br>
<br>
Birgit<br>
<br>
</body>
</html>