<div dir="ltr">Thank You for your reply ! I really appreciate it !  <br>But why on some computer it make a "linestring" column and in other not? I've tested in 3 different computer and one of this return directly "linestring"... this is really a mystery for me...<div>
<br></div><div>L. <div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-07 15:56 GMT+02:00 Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Linestrings are geometry objects. If you want your table to have tighter constraints on it create the table first and use addgeometrycolumn() to set the geometry type and constraints then use<br>

<br>
insert into "l_506" (oid, geom) from SELECT ...<br>
<br>
CREATE TABLE AS does not know what the query will return as far as geometry types so it make a general "geometry" column.<br>
<br>
-Steve<div><div class="h5"><br>
<br>
On 5/7/2014 9:38 AM, Pier Lorenzo Marasco wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi all,<br>
<br>
I'm trying to make something very easy but I've a problem with results.<br>
I've two tables and I need to make lines from the joins of these two.<br>
I've try with this :<br>
<br>
CREATE TABLE "l_506" AS<br>
SELECT elements.oid, ST_MakeLine(seeds.geom) AS geom<br>
FROM elements<br>
    JOIN seeds ON (elements.oid=seeds.oid)<br>
WHERE elements.code='0506'<br>
GROUP BY elements.oid;<br>
<br>
All the elements in seeds are linestring but what I achieve is a<br>
geometry table. Ok.. I should alter the column type and everything goes<br>
as I aspect but I would like to understand where I'm getting wrong.<br>
<br>
L.<br>
<br>
--<br>
Pier Lorenzo Marasco<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">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-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="times new roman, serif" size="4">Pier Lorenzo Marasco </font><br></div><div><font size="1">Via D.Moreni,2 </font></div><div><font size="1">50135 Firenze</font></div>
<div><font size="1"><br></font></div><div><font size="1">cell/mobile   +39 329 35 37527</font></div><div><font size="1">Casa/home  +39 055 011 71 20</font></div><div><font size="1">skype pl.marasco</font></div><div><br></div>
</div>
</div>