<div>Hi there</div><div><br></div><div>Looking for some advice.</div><div><br></div><div>I have a table with thousands of polygon records.</div><div><br></div><div>I want to union all intersecting polygons that have the same attributes into one polygon (So one record, rather than 10 or 20 etc.). </div>
<div><br></div><div>Can anyone recommend the best way to do this.</div><div><br></div><div>I can do a loop which goes through each record, unions its geometry with the geometry's of the other matching records that intersect with it, then move to the next record. Problem with this is that it creates duplicate polygons when it comes to a record that has already been unioned with a previous one record. I can easily delete any duplicate records generated, but I'm wondering if there's a less long winded way.</div>
<div><br></div><div>I hope I'm explaining myself correctly.</div><div><br></div><div>My details are:</div><div>postgis 1.3.5</div><div>PostgreSQL 8.3.8</div><div><br></div><div>Many thanks in advance.</div><div><br></div>
<div>Rebecca</div><div><br></div>