<div dir="ltr">You've got several lines as several rows, you should combine them before cutting the polygon:<div><br>CREATE TABLE aoi_blocks AS<br>SELECT *, <br> ST_Difference(aoi.geom, ST_Union(lines.buffer_geom))<br> FROM aoi, lines;<br><div class="gmail_extra"><br><div class="gmail_quote">2014-11-10 14:41 GMT+03:00 Christopher Braune <span dir="ltr"><<a href="mailto:chbraune@uni-potsdam.de" target="_blank">chbraune@uni-potsdam.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Dear all,<br>
<br>
I want to clip polygons like this:<br>
<br>
<img src="cid:part1.01060305.02010509@uni-potsdam.de" alt=""><br>
I tried the following SQL-sentences:<br>
<br>
CREATE TABLE aoi_blocks AS<br>
SELECT *, <br>
ST_Difference(aoi.geom, lines.buffer_geom)<br>
FROM aoi, lines;<br>
<br>
I get polygons, but not only the difference polygons!<br>
<br>
Thanks for all replies!<span class=""><font color="#888888"><br>
Christopher<br>
</font></span></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Darafei "Komяpa" Praliaskouski<br>OSM BY Team - <a href="http://openstreetmap.by/" target="_blank">http://openstreetmap.by/</a><br><a href="mailto:xmpp%3Ame@komzpa.net" target="_blank">xmpp:me@komzpa.net</a> mailto:<a href="mailto:me@komzpa.net" target="_blank">me@komzpa.net</a><br></div>
</div></div></div>