<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Set QGIS snapping on, so the new points will be "snapped" to the nearest existing one within an appropriate tolerance.<br><br><br>The other way to do this in Postgis is using topology, add all your component linestrings & let Postgis build the faces/polygons from this. So shared boundaries are the same linestring, not a separate one, ensuring the polygon edges are identical.<br><br>See this example:<br><a href="http://trac.osgeo.org/postgis/wiki/UsersWikiTopologyExample">http://trac.osgeo.org/postgis/wiki/UsersWikiTopologyExample</a><br><br>& the full docs:<br><a href="http://trac.osgeo.org/postgis/wiki/UsersWikiPostgisTopology">http://trac.osgeo.org/postgis/wiki/UsersWikiPostgisTopology</a><br><a href="http://postgis.refractions.net/docs/Topology.html">http://postgis.refractions.net/docs/Topology.html</a><br><br><br>Cheers,<br><br>  Brent
 Wood<br><br><br>--- On <b>Thu, 11/8/12, uk52rob <i><uk52rob@yahoo.co.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: uk52rob <uk52rob@yahoo.co.uk><br>Subject: [Qgis-user] PostGIS Polygon Editing<br>To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org><br>Date: Thursday, November 8, 2012, 10:07 PM<br><br><div id="yiv23827447"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Hi,</div><div><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;">I have a PostGIS polygon layer in QGIS which I need to add features to.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times,
 serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;">I can add polygons to it, no problem, but I need to be able to have the edges of the new features lined up exactly with the existing features. This is essentially to fill a void in the layer, or to continue in one direction. I have done this
 before using local shapefiles and the difference tool (very time consuming!), but this requires separate layers. </div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;">Is it possible to achieve the same result with a single PostGIS layer, so I can overlap an existing feature with my new feature, and trim it to the existing feature's boundary?</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;">I hope this makes sense!</div><div
 style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', times, serif;background-color:transparent;font-style:normal;">Thanks</div></div></div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="/mc/compose?to=Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></blockquote></td></tr></table>