<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">My impression is that working topologies is slow, especially with large datasets - lots of computation involved.<br><br>How effective would this be with hundreds of thousands or millions or small polygons?<br><br>Just running ST_Union() takes hours to days.<br><br>Thanks<br><br>Brent Wood<br><br>--- On <b>Fri, 10/26/12, Sandro Santilli <i><strk@keybit.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Sandro Santilli <strk@keybit.net><br>Subject: Re: [postgis-users] How to eliminate small gaps produced by ST_union?<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Friday, October 26, 2012, 6:04 AM<br><br><div class="plainMail">You may try to construct a topology within PostGIS-2.0, using<br>a small tolerance, and then get the
 geometries back. <br><br>--strk;<br><br>On Thu, Oct 25, 2012 at 05:54:05PM +0100, Alexandre Neto wrote:<br>> I'm trying to Aggregate\Dissolve a set of adjacent, but not touching<br>> polygons in Postgis. The geometries were created editing the Postgis table<br>> in QGIS created, with snapping and avoid overlap in the layer.<br>> <br>> I used ST_Union like this:<br>> <br>> SELECT ST_Union(the_geom)<br>> FROM table;<br>> <br>> Small gaps similar to lines appear in the result. This happens when the<br>> adjacent polygons do not share the exact same vertices.<br>> <br>> [image: Inline image 2]<br>> Is there a way to eliminate this "gaps" or "small angles" within Postgis?<br>> <br>> I know that v.clean in GRASS can eliminate small angles, and correct<br>> topology, but that would mean I needed to copy the features to GRASS,<br>> correct them and copy it back to Postgis.<br>> <br>> Thanks in
 advance,<br>> <br>> Alexandre Neto<br><br><br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=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></div></blockquote></td></tr></table>