<pre>HI Mike,<br><br>it work very well.<br><br>So I reached my scope.<br><br>I used this sql:<br><br>INSERT INTO public.<table_name multipoint> (id,idrtt,geom) (<br> select<br> <a href="http://c.id">c.id</a>,<br>
c.idrtt,<br> st_union(c.geom)<br> from (<br> select <br> <a href="http://a.id">a.id</a> as id,<br> a.idrtt as idrtt,<br> (ST_DumpPoints(a.geom)).* as geom<br> from <br> public.<table_name linestring> as a<br>
) as c<br> group by<br> <a href="http://c.id">c.id</a>,<br> c.idrtt<br>);<br><br><br>Regards,<br><br>Andrea.<br><br>>If you have PostGIS 1.5, then you can use ST_DumpPoints:<br><a href="http://postgis.refractions.net/docs/ST_DumpPoints.html">>http://postgis.refractions.net/docs/ST_DumpPoints.html</a><br>
><br>>E.g.:<br>><br>>SELECT gid, ST_AsText(ST_Collect(ST_AsText(geom)))<br>>FROM (<br>> SELECT gid, (ST_DumpPoints(g.geom)).*<br>> FROM<br>> (SELECT 1 as gid, 'LINESTRING (0 0, 0 3, 3 4)'::geometry AS geom<br>
> UNION ALL<br>> SELECT 2 as gid, 'LINESTRING (1 1, 2 6, 7 7)'::geometry AS geom) AS g<br>> ) j<br>>GROUP BY gid;<br>><br>>-Mike<br></pre><br clear="all"><br>-- <br>-----------------<br>
Andrea Peri<br>. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br><br>