<div dir="ltr">Maybe you can check that you have indexes on both geom column.<br><br>Cheers,<br><br>Rémi-C<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/2 laurent <span dir="ltr"><<a href="mailto:lcelati@latitude-geosystems.com" target="_blank">lcelati@latitude-geosystems.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Ok sorry for the mistake. So please read the correction :<br>
<div class="im"><br>
-----------------------<br>
CREATE TABLE example_intersections_a AS (SELECT ST_Intersection<br>
</div>(part_1.geom, part_2.geom)FROM fra_adm0 AS part_1,france_merge_pts1 AS<br>
part_2 WHERE ST_Intersects(part_1.geom, part_2.geom));<br>
<div class="im">ALTER TABLE example_intersections_a ADD COLUMN id SERIAL;<br>
ALTER TABLE example_intersections_a ADD PRIMARY KEY (id);<br>
----------------------<br>
<br>
<br>
</div>My goal is to populate into a new table the points from my raw points layer<br>
(france_merge_pts1) which contain or touch the surface of my raw surface<br>
polygon (fra_adm0). According to you, my query is good? My point layer is<br>
huge. I launched the query. It is still ongoing. Maybe is there a way to<br>
speed up the process?<br>
<br>
In advance, thank you.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://postgis.17.x6.nabble.com/ST-intersects-error-message-tp5005029p5005031.html" target="_blank">http://postgis.17.x6.nabble.com/ST-intersects-error-message-tp5005029p5005031.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">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-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>