<div dir="ltr"><div><div>Hey, <br>snap is deceiptively named.<br></div>As far as I know It just snaps points to points (or points in geometry to points in geometry).<br></div>For exemple, if you draw 2 square side by side, one being bigger than the other, and separate theim with small distance, snap will do nothing.<br>Cheers,<br>Rémi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-24 13:41 GMT+02:00 Alexandre Neto <span dir="ltr"><<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>I have to tables in postgis. table one has a set of adjacent polygons that covers all my area o interest, while table to have a few polygons across the same area.</div><div><br></div><div>Some boundaries of table 2 should snap to the table 1 polygons, but they don't.</div><div><br></div><div>I'm trying to use st_snap to correct this, but I'm not being able to do it. There are vertices that "refuse" to change while other (just a few do). I'm already using a very big tolerance.</div><div><br></div><div> Therefore I need your help to see if my query looks correct or not.</div><div><br></div><div><br></div><div><div>WITH snap_grid as</div><div>(</div><div>SELECT</div><div>    St_Collect(f.geom) as geom</div><div>FROM</div><div>    table_1 as f</div><div>)</div><div>SELECT </div><div>    r.gid, st_snap(r.geom,q.geom,10) as geom</div><div>FROM </div><div>    table2 as r,</div><div>    snap_grid as q</div><div>WHERE r.gid = 53</div></div><div><br></div><div>I already tried dumping all point form the table 1 polygons, but the result is "similar".</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Alexandre Neto</div></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>