<div dir="ltr">I would like to automate the cleanup of a vector later. Neither ST_Snap() nor ST_SnapToGrid() are doing it for me. I've got a little sketch below in which I've attempted to illustrate my problem with ST_SnapToGrid(). The green lines represent the vector layer that I'd like to clean up. I'd like the four vertices to be snapped together. The red lines represent the grid. So in this case the four vertices all fall in different grid cells and no snapping occurs despite the vertices being closer together than the grid size. The data is irregular so setting an origin will not be of much use. Any suggestions?<br clear="all"><div><img src="cid:ii_kv9rvw7t1" alt="image.png" width="157" height="159"><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>