Commit graph

396 commits

Author SHA1 Message Date
Sandro Santilli ea300ebd9b Regress-test ST_ChangeEdgeGeom with 2-vertext target (#1775)
This case was actually fixed by previous commit (ST_SymDifference)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9642 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-13 21:14:57 +00:00
Sandro Santilli 50eecf8c2e Give more detail on topology editing function exception
git-svn-id: http://svn.osgeo.org/postgis/trunk@9640 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-13 14:32:07 +00:00
Sandro Santilli 10fc02f7a5 Use an SQLPP command for pre-processing SQL files (#1694)
The SQLPP command is figured at ./configure time.
It will use cpp(1) or gpp(1) if any is found in that order or
fallback to whatever CPP expands to (usually the compiler with -E)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9639 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 14:09:22 +00:00
Sandro Santilli 52b429a731 Automate test for toTopoGeom usage with custom search_path (#1763)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9636 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 10:28:30 +00:00
Sandro Santilli 3b769280b8 Don't let ST_RemEdge* destroy TopoGeometry objects (#1766)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9627 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-11 19:17:49 +00:00
Sandro Santilli 821a1f41bf Cleanup lines after (bad) snapping (#1714)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9625 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-11 12:37:18 +00:00
Sandro Santilli c6fc39dc76 Have ST_ModEdgeSplit and ST_NewEdgesSplit to use ST_Spit (#1715)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9624 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-10 17:26:57 +00:00
Sandro Santilli a0c6242eba Fully qualify calls to topology functions (#1763)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9619 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-08 10:00:13 +00:00
Sandro Santilli e92b97dcac Tabs to spaces
git-svn-id: http://svn.osgeo.org/postgis/trunk@9607 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-04 21:49:26 +00:00
Sandro Santilli b2f7b6b602 Fix GetGopoGeomElementArray code (#1730)
Includes regression testing for both GetGopoGeomElements
and GetGopoGeomElementArray

git-svn-id: http://svn.osgeo.org/postgis/trunk@9568 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-28 11:36:52 +00:00
Sandro Santilli 718bbb3745 Wrap most topology.sql into a transaction
CREATE SCHEMA is left out because uninstall_topology isn't getting
rid of it (to be fixed later)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9557 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-27 17:30:43 +00:00
Sandro Santilli 09205909c5 Add topology validity checking (extra paranoia)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9541 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 23:00:19 +00:00
Sandro Santilli 72d9f2d938 Do not abuse ST_Snap for tweaking edge endpoints (#1706)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9540 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 22:54:10 +00:00
Sandro Santilli e7296ab87d Enhance edge splitting robustness (#1711)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9539 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 22:23:05 +00:00
Sandro Santilli fbfe439e67 Add debugging lines to sqlmm edge splitting functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@9536 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 17:08:08 +00:00
Sandro Santilli c317ab58d6 Add missing ticket reference to it's regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@9535 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 15:11:07 +00:00
Paul Ramsey 29e2d6a299 Change @rm to rm for visibility
git-svn-id: http://svn.osgeo.org/postgis/trunk@9523 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 21:36:59 +00:00
Paul Ramsey cf8753bd36 Make distclean should remove all the Makefile's generated by ./configure
git-svn-id: http://svn.osgeo.org/postgis/trunk@9522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 20:32:29 +00:00
Sandro Santilli 95b8ba808d Make sure to rebuild topology.sql on postgis_svn_revision.h change
git-svn-id: http://svn.osgeo.org/postgis/trunk@9492 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-14 15:40:33 +00:00
Sandro Santilli ba8ee640f5 Add upgrade instructions
git-svn-id: http://svn.osgeo.org/postgis/trunk@9483 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:18:04 +00:00
Sandro Santilli 08fb7ae21e Drop SRID constraint issue (not an issue anymore with typmod)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9482 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:17:55 +00:00
Sandro Santilli 17aad4599b Add note about toTopoGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@9481 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:17:46 +00:00
Sandro Santilli e3be619046 Drop .cvsignore files
git-svn-id: http://svn.osgeo.org/postgis/trunk@9429 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-08 10:36:15 +00:00
Sandro Santilli bcf0caf894 Snap new lines over existing nodes (#1654)
Also add Salvatore to the list of testing heroes :)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9409 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 16:16:34 +00:00
Sandro Santilli 2aa8da7e1f Don't let a single collapse hide _all_ edges (#1650)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9408 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:44:04 +00:00
Sandro Santilli eb170994e8 Skip collapsed edges after snapping (#1650)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9407 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:21:01 +00:00
Sandro Santilli b6ba629675 Uncomment new tests for #1641
git-svn-id: http://svn.osgeo.org/postgis/trunk@9406 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:20:41 +00:00
Sandro Santilli 68ec5d2211 Fix toTopoGeom to actualy _use_ to given tolerance (#1647)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9404 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 09:05:00 +00:00
Sandro Santilli 1dbfa82550 Add GetTopologySRID (#1182)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9399 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 12:24:48 +00:00
Sandro Santilli bb4dc91e35 Optimize ST_AddIsoNode (#983)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9398 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 12:14:47 +00:00
Sandro Santilli 5c31b7b19d _ST_MinTolerance isn't IMMUTABLE, due to db lookup...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9396 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 11:05:34 +00:00
Sandro Santilli 249909d5da Handle 0 tolerance by using topology.precision or min float one
This handling fixes the #1641 case w/out passing an explicit
tolerance and makes a step toward #785.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9395 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 10:49:41 +00:00
Sandro Santilli 4b605d2e5a Add an internal topology._st_mintolerance funtion
This function computes the minimum tolerance for a given geometry.
It works by computing the smallest floating point difference that
could be expressed on any vertex of the geometry.

Currently it's only used to workaround the ST_DWithin/ST_Within
inconsistency (#1625) but could probably be used everytime 0 is
passed as a tolerance, possibly fixing #1641 as well.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9374 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 19:09:50 +00:00
Sandro Santilli e0008fb9ab Add a test for #1641 using a tolerance (1e-16 is good enough)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9368 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 15:14:27 +00:00
Sandro Santilli 8aa78cedd0 Add test for #1641 (disabled as it would fail)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9367 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 15:07:58 +00:00
Sandro Santilli ab7631eaa3 Cleanup the face table as well (you just can't drop the universe)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9366 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 15:07:49 +00:00
Sandro Santilli 9c19f7f940 Check first point after snapping an edge to a new point (#1631)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9352 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 15:59:14 +00:00
Sandro Santilli 9f7ad76ab4 TopoGeo_addPoint: use a more functional tolerance when snapping (#1613)
All of this looks like magic but it isn't.
I actually wonder if ST_ModEdgeSplit and ST_ModEdgesSplit and ST_Split
itself should do this internally, and if in doing so we wouldn't need
to do it from higher levels. It doesn't indeed feel comfortable to do
all this noise on such an high level.

Anyway this commit adds a now-passing regression test for the topology
building issue and that's A Good Thing.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9330 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-28 17:17:39 +00:00
Sandro Santilli 856046a717 Hush debugging lines unless requested
git-svn-id: http://svn.osgeo.org/postgis/trunk@9329 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-28 17:17:29 +00:00
Sandro Santilli aae8d047e9 Fix "make clean" to drop all generated files
git-svn-id: http://svn.osgeo.org/postgis/trunk@9312 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 16:26:53 +00:00
Sandro Santilli 5dd65e501d Encode dependency of topology script on sqldefines (for version)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9311 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 16:06:24 +00:00
Sandro Santilli 2afa90ab68 Add postgis_topology_scripts_installed() function (#1608)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9306 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 15:02:58 +00:00
Sandro Santilli 4727baa494 Be immune from topology sequence advancements
git-svn-id: http://svn.osgeo.org/postgis/trunk@9288 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 19:11:55 +00:00
Sandro Santilli 258f0ee04f Do not report "face without edges" error for universal face (#1612)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9285 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 15:23:35 +00:00
Sandro Santilli 69fcd2336f Have ST_GetFaceGeometry check face existance, regress-test
git-svn-id: http://svn.osgeo.org/postgis/trunk@9276 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-23 12:54:48 +00:00
Sandro Santilli 6c472db2c9 Update face MBR on edge change (#1587)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9235 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-20 10:52:31 +00:00
Sandro Santilli 2ab2a79839 Check edge disposition around endnodes (#1571)
Includes a couple new testcases, for closed and non-closed edges
changing disposition around their end nodes.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9228 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 18:29:50 +00:00
Sandro Santilli ba555d1caf Rework edge motion range construction (#1571)
Includes a new testcase which was failing before this change

git-svn-id: http://svn.osgeo.org/postgis/trunk@9226 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 15:11:36 +00:00
Sandro Santilli d1c6ef4633 Add another test for ST_ChangeEdgeGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@9225 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 14:03:28 +00:00
Sandro Santilli e13e1fc349 Handle some (not all) cases of non-isomorphic edge changes (#1571)
The problem is much harder than it looks ...

git-svn-id: http://svn.osgeo.org/postgis/trunk@9224 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 13:46:33 +00:00