Hi;<br><br>create a new geometry column <br><br>use update table set new_column=st_buffer(the_geom,0). IsValid will return true. Then try the union operation..<br><br>IBO.. <br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 12:46 AM, Javier de la Torre <span dir="ltr"><<a href="mailto:jatorre@vizzuality.com">jatorre@vizzuality.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 all,<br>
<br>
I have a table with a MULTIPOLYGON field with around 100k records. Some of these records, 2K have self intersections and other problems that make ST_IsValid return false. The polygons overlap a lot and I wanted to generate another table that will be the union of all polygons.<br>
<br>
The table looks like<br>
id, the_geom<br>
<br>
What would be the best way to union all of the geometries into a new table where there is only POLYGONS that do not overlap?<br>
<br>
Thanks in advance.<br>
<br>
Javier.<br>
<br>
<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>
</blockquote></div><br>