]> granicus.if.org Git - postgis/commit
Improve robustness of adding points to topology (#3280)
authorSandro Santilli <strk@keybit.net>
Wed, 30 Sep 2015 13:57:52 +0000 (13:57 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 30 Sep 2015 13:57:52 +0000 (13:57 +0000)
commitd68c695122593d0178decc457a1de7e073fc362f
treea4a9d8838bb3a8c22e12b01c6d9cda326f353b3d
parentde9dc4f402e616504d4d1eaf550e8f5b31638e83
Improve robustness of adding points to topology (#3280)

When multiple edges are within tolerance from the added point,
give preference to snapping to the one which contains a point
projected to it.

Also, make sure to sort nodes and edges by distance before
considering them for matching or snapping, which is what
was done in previous versions.

git-svn-id: http://svn.osgeo.org/postgis/trunk@14155 b70326c6-7e19-0410-871a-916f4a2858ee
liblwgeom/lwgeom_topo.c
topology/test/regress/topogeo_addlinestring.sql
topology/test/regress/topogeo_addlinestring_expected_newsnap
topology/test/regress/topogeo_addlinestring_expected_oldsnap