Hi Ben,<br>I'am not sure to understand...<br>Have you tried something like that ?<br><br>SELECT *, (ST_DUMP(the_geom)).geom  AS the_geom FROM your_table<br><br>Fred<br><br><br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 2:11 PM, Ben Madin <span dir="ltr"><<a href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">Thanks Fred,<div><br></div><div>I have also had this problem, but I don't understand how to handle the 'set' that is returned.</div>
<div><br></div><div>I don't seem to be able to split out each LINESTRING into its own row. Is there a way to do this or handle the 'set' output?</div><div><br></div><div>(It may just be incorrect programming on my part, but I have tried all the examples from the documents, and get a geometry 'set' - I just can't do anything with it!)</div>
<div><br></div><div>cheers</div><div><br></div><div>Ben</div><div><br></div><div><br></div><div><br></div><div><div><div></div><div class="h5"><br><div><div>On 19/08/2009, at 6:54 PM, Fred Lehodey wrote:</div><br><blockquote type="cite">
Hi Andrea,<br>Have a look to ST_Dump<br><a href="http://postgis.refractions.net/docs/ST_Dump.html" target="_blank">http://postgis.refractions.net/docs/ST_Dump.html</a><br><br>Fred<br><br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 11:50 AM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I have some troubles try-ing to split from a MultiLineString to LineStrings.<br>
<br> I try this code with postgis 1.4.0:<br><br>ST_GeometryN(geom,generate_series(1,ST_NumGeometries(geom))) <br> <br>But it return all LineStrings as simple segments with 2 only vertexs.<br><br>It seem the ST_NumGeometries(geom) return the count of all segments , not the parts.<br>
<br>There a function that count the num of parts ?<br> <br>Many thx,<br><font color="#888888"><br>Andrea Peri<br><br><br> </font><br>_______________________________________________<br> postgis-users mailing list<br> <a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
 <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br> <br></blockquote></div><br> _______________________________________________<br>
postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<div style="margin: 0px;">-- </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Ben Madin</div><div style="margin: 0px;">REMOTE INFORMATION</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">t : +61 8 9192 5455</div><div style="margin: 0px;">f : +61 8 9192 5535</div><div style="margin: 0px;">m : 0448 887 220</div><div style="margin: 0px;">Broome   WA   6725</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px; min-height: 14px;"><a href="mailto:ben@remoteinformation.com.au" target="_blank">ben@remoteinformation.com.au</a></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;"><span style="white-space: pre;"><span style="white-space: pre;">                                                      </span></span>Out here, it pays to know...</div></div><br></span> </div>
<br></div></div><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>