[postgis-users] Very slow intersection
Brian Stempin
brian.stempin at gmail.com
Thu Dec 2 03:08:27 PST 2010
Hi Ted,
Perhaps you should create the table of geometries and then update the table
instead:
create table countyShp as
select cty.gid, cty.the_geom as the_geom
from countyShpWideBound as cty;
UPDATE countyShp cty, uscoast cst
SET cty.the_geom = ST_Difference(cty.the_geom, cst.the_geom)
WHERE cty.the_geom && cst.the_geom
AND ST_Intersects(cty.the_geom, cst.the_geom);
(queries untested, of course)
HTH,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20101202/d084ae6a/attachment.html>
More information about the postgis-users
mailing list