<br><br><div class="gmail_quote">2009/9/29 eehab hamzeh <span dir="ltr"><<a href="mailto:eehab40@hotmail.com">eehab40@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
hello all,<br><br>I need to know the id of the object that are intersect, i use the following query. can any body help to develop it to contain the id.<br><br><br>CREATE TABLE example_intersections_b AS (<br>    SELECT  DISTINCT st_intersects(part_1.the_geom, part_2.the_geom)<br>
      FROM  source AS part_1,<br>           faces_obj AS part_2<br>     WHERE <a href="http://part_1.id" target="_blank">part_1.id</a> <> <a href="http://part_2.id" target="_blank">part_2.id</a><br>);<br></div></blockquote>
</div><br>CREATE TABLE example_intersections_b AS <br>(<br>   SELECT  DISTINCT st_intersects(part_1.the_geom, part_2.the_geom),<br>                 <a href="http://part_1.id">part_1.id</a>,<br>                 <a href="http://part_2.id">part_2.id</a><br>
      FROM  source AS part_1,<br>           faces_obj AS part_2<br>     WHERE <a href="http://part_1.id/" target="_blank">part_1.id</a> <> <a href="http://part_2.id/" target="_blank">part_2.id</a><br>);<br><br>You don't need anything complicated here. Just add your ids directly in your SELECT query.<br>
<br>Emilie Laffray<br>