<div dir="ltr"><div dir="ltr"><div>Ok thanks, will do in future:</div><div><br></div><div>This is what I have tried and no joy- any ideas? Thanks in advance.</div><div><br></div><div>SELECT ST_AsText((ST_Dump(ST_Split(circle, line))).geom) As wkt<br>INTO layerq<br>FROM (SELECT<br>    ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)) As line,<br>    ST_Buffer(ST_GeomFromText('POINT(100 90)'), 50) As circle) As foo;<br>select populate_geometry_columns();<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Le gach dea ghui,<br></div><div><span style="color:rgb(61,133,198)"><b><span style="background-color:rgb(255,255,255)"><i>Shane Carey</i></span></b></span></div><div><span style="color:rgb(61,133,198)"><b><span style="background-color:rgb(255,255,255)"><i>GIS and Data Solutions Consultant</i></span></b></span><br></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 18, 2018 at 3:38 PM Arnaud L. <<a href="mailto:arnaud.listes@codata.eu">arnaud.listes@codata.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 18/10/2018 à 18:43, Shane Carey a écrit :<br>
> Yep, I run the following:<br>
> <br>
> SELECT ST_Split(circle, line)<br>
> INTO qlayer<br>
> FROM (SELECT<br>
>      ST_MakeLine(ST_MakePoint(10, 10),ST_MakePoint(190, 190)) As line,<br>
>      ST_Buffer(ST_GeomFromText('POINT(100 90)'), 50) As circle) As foo;<br>
> <br>
> But this layer does not show up as a gis layer in qgis?<br>
<br>
Probably because the geometry_columns table is not populated.<br>
Try to either create the destination table first and then to insert in <br>
it, or maybe just run :<br>
SELECT Populate_Geometry_Columns();<br>
<br>
> Thanks in advance for your help. Sorry, what do you mean by top post? <br>
<br>
<a href="https://en.wikipedia.org/wiki/Posting_style" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Posting_style</a><br>
Bottom or interleaved posting are the preferred style.<br>
<br>
--<br>
Arnaud<br>
</blockquote></div>